Merge branch 'fix82' into 'master'

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

Closes #82

See merge request AttorneyOnline/AO2-Client!74
This commit is contained in:
oldmud0 2019-07-12 22:57:54 +00:00
commit 621aa1adac

View File

@ -2884,7 +2884,7 @@ void Courtroom::on_ooc_return_pressed()
caseslist.removeOne(".."); caseslist.removeOne("..");
caseslist.replaceInStrings(".ini",""); 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"); 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(); ui_ooc_chat_message->clear();