aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2020-07-26 11:17:50 -0500
committerGitHub <noreply@github.com>2020-07-26 11:17:50 -0500
commit1bccc5c3d84e0197049f46a079330b9e6cd45977 (patch)
treebbab89163d59133d8845b9d5dfc1f1270bb7c57b /src/courtroom.cpp
parent29f0e06bc80428a753f6c67012637e914fbe295a (diff)
parent154ba64f4acfdbec4d9f32f2f35d18b0a27e0cb2 (diff)
Merge pull request #198 from Crystalwarrior/bugfix/max_colors
Fix max colors being one int off
Diffstat (limited to 'src/courtroom.cpp')
-rw-r--r--src/courtroom.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 943a8f8d..2d22b5a7 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -1591,7 +1591,7 @@ void Courtroom::on_chat_return_pressed()
if (text_color < 0)
f_text_color = "0";
- else if (text_color > max_colors)
+ else if (text_color >= max_colors)
f_text_color = "0";
else
f_text_color = QString::number(text_color);