Fix bug #82 causing a client crash if /save_case was used without providing a courtroom state

This commit is contained in:
Windrammer 2019-07-11 09:05:26 -06:00
parent a504ca7f9a
commit b15c6f15f0

View File

@ -2884,7 +2884,7 @@ void Courtroom::on_ooc_return_pressed()
caseslist.removeOne("..");
caseslist.replaceInStrings(".ini","");
if (command.size() < 2)
if (command.size() < 3)
{
append_server_chatmessage("CLIENT", "You need to give a filename to save (extension not needed) and the courtroom status!", "1");
ui_ooc_chat_message->clear();