aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWindrammer <team.drift86@gmail.com>2019-07-11 09:05:26 -0600
committerWindrammer <team.drift86@gmail.com>2019-07-11 09:05:26 -0600
commitb15c6f15f0b13bce4ef7305efa08c1d257401def (patch)
tree526334c2d084f3ea4ba36f3fc2cc346be82ea6fb
parenta504ca7f9ac40228ff5d67d7753cccc7a903599b (diff)
Fix bug #82 causing a client crash if /save_case was used without providing a courtroom state
-rw-r--r--src/courtroom.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 344516a5..3d812e05 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -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();