From 8a8062fbbf9a20905e28eb97837ea538d23da862 Mon Sep 17 00:00:00 2001 From: OmniTroid Date: Tue, 4 Apr 2017 21:00:45 +0200 Subject: fixed a crash and incremented to 2.3.3 --- courtroom.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'courtroom.cpp') diff --git a/courtroom.cpp b/courtroom.cpp index ee09bba9..05ee6892 100644 --- a/courtroom.cpp +++ b/courtroom.cpp @@ -856,6 +856,9 @@ void Courtroom::on_chat_return_pressed() void Courtroom::handle_chatmessage(QStringList *p_contents) { + if (p_contents->size() < 15) + return; + for (int n_string = 0 ; n_string < chatmessage_size ; ++n_string) { m_chatmessage[n_string] = p_contents->at(n_string); -- cgit