From 154ba64f4acfdbec4d9f32f2f35d18b0a27e0cb2 Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Sat, 25 Jul 2020 19:31:36 +0300 Subject: [PATCH] Fix max_colors allowing +1 more than the actual max --- src/courtroom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/courtroom.cpp b/src/courtroom.cpp index effef54..b5a4fb5 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);