diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2021-03-30 22:48:10 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-30 22:48:10 -0500 |
| commit | 2a1905d009aafaf571b9c2cd50fdc3326194def3 (patch) | |
| tree | 45c9581c2a71b532cb19d144586d987f66b493da | |
| parent | 298422d45344b8e92ca5a8dd7002ecf92e185ea6 (diff) | |
Trivial bounds check fix
| -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 e6bd57bd..fabcac82 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -3713,7 +3713,7 @@ void Courtroom::handle_song(QStringList *p_contents) } bool is_stop = (f_song == "~stop.mp3"); - if (n_char > 0 && n_char < char_list.size()) { + if (n_char >= 0 && n_char < char_list.size()) { QString str_char = char_list.at(n_char).name; QString str_show = ao_app->get_showname(str_char); if (p_contents->length() > 2) { |
