Fix max_colors allowing +1 more than the actual max

This commit is contained in:
Crystalwarrior 2020-07-25 19:31:36 +03:00
parent e84426ae8d
commit 154ba64f4a

View File

@ -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);