Fix max_colors allowing +1 more than the actual max
This commit is contained in:
parent
e84426ae8d
commit
154ba64f4a
@ -1591,7 +1591,7 @@ void Courtroom::on_chat_return_pressed()
|
|||||||
|
|
||||||
if (text_color < 0)
|
if (text_color < 0)
|
||||||
f_text_color = "0";
|
f_text_color = "0";
|
||||||
else if (text_color > max_colors)
|
else if (text_color >= max_colors)
|
||||||
f_text_color = "0";
|
f_text_color = "0";
|
||||||
else
|
else
|
||||||
f_text_color = QString::number(text_color);
|
f_text_color = QString::number(text_color);
|
||||||
|
Loading…
Reference in New Issue
Block a user