aboutsummaryrefslogtreecommitdiff
path: root/courtroom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'courtroom.cpp')
-rw-r--r--courtroom.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/courtroom.cpp b/courtroom.cpp
index 66e29caf..3da69ad8 100644
--- a/courtroom.cpp
+++ b/courtroom.cpp
@@ -1309,7 +1309,7 @@ void Courtroom::handle_chatmessage(QStringList *p_contents)
chatlogpiece* temp = new chatlogpiece(ao_app->get_showname(char_list.at(f_char_id).name), f_showname, ": " + m_chatmessage[MESSAGE], false);
ic_chatlog_history.append(*temp);
- while(ic_chatlog_history.size() > log_maximum_blocks)
+ while(ic_chatlog_history.size() > log_maximum_blocks && log_maximum_blocks > 0)
{
ic_chatlog_history.removeFirst();
}
@@ -2611,7 +2611,7 @@ void Courtroom::handle_song(QStringList *p_contents)
chatlogpiece* temp = new chatlogpiece(str_char, str_show, f_song, true);
ic_chatlog_history.append(*temp);
- while(ic_chatlog_history.size() > log_maximum_blocks)
+ while(ic_chatlog_history.size() > log_maximum_blocks && log_maximum_blocks > 0)
{
ic_chatlog_history.removeFirst();
}