From 8a8062fbbf9a20905e28eb97837ea538d23da862 Mon Sep 17 00:00:00 2001 From: OmniTroid Date: Tue, 4 Apr 2017 21:00:45 +0200 Subject: [PATCH] fixed a crash and incremented to 2.3.3 --- Attorney_Online_remake.pro | 2 +- aoapplication.h | 2 +- courtroom.cpp | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Attorney_Online_remake.pro b/Attorney_Online_remake.pro index 1c4cb9d..74013bc 100644 --- a/Attorney_Online_remake.pro +++ b/Attorney_Online_remake.pro @@ -13,7 +13,7 @@ RC_ICONS = logo.ico TARGET = Attorney_Online_remake TEMPLATE = app -VERSION = 2.3.2.0 +VERSION = 2.3.3.0 SOURCES += main.cpp\ lobby.cpp \ diff --git a/aoapplication.h b/aoapplication.h index 9c39624..b08bea6 100644 --- a/aoapplication.h +++ b/aoapplication.h @@ -135,7 +135,7 @@ public: private: const int RELEASE = 2; const int MAJOR_VERSION = 3; - const int MINOR_VERSION = 2; + const int MINOR_VERSION = 3; QString user_theme = "default"; diff --git a/courtroom.cpp b/courtroom.cpp index ee09bba..05ee689 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);