Trivial bounds check fix

This commit is contained in:
oldmud0 2021-03-30 22:48:10 -05:00 committed by GitHub
parent 298422d453
commit 2a1905d009
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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