diff options
| author | Crystalwarrior <varsash@gmail.com> | 2020-07-25 19:31:36 +0300 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2020-07-25 19:31:36 +0300 |
| commit | 154ba64f4acfdbec4d9f32f2f35d18b0a27e0cb2 (patch) | |
| tree | 53b6479829b83628443527c95988ab992b611511 | |
| parent | e84426ae8df870d7f7f9a86fbe9ff6beddf346b3 (diff) | |
Fix max_colors allowing +1 more than the actual max
| -rw-r--r-- | src/courtroom.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index effef543..b5a4fb58 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); |
