aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-02-21 17:57:46 +0100
committersD <stoned@derpymail.org>2020-02-21 17:57:46 +0100
commit87e359487d7e7d75cb696736f2a5da21d9648898 (patch)
treebc5e256ec2274f816303a14bcb69ba366084845e
parent9f5343e0bd93bc735bf6b4b4feea644ce8e048f8 (diff)
combine these conditions
-rw-r--r--src/courtroom.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index e62f6c60..64c288cb 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -2374,7 +2374,7 @@ void Courtroom::chat_tick()
f_message.remove(0,2);
}
- if (f_message.size() == 0)
+ if (f_message.size() == 0 || tick_pos >= f_message.size())
{
text_state = 2;
if (anim_state != 4)