Prevent selecting nonexistent room
This commit is contained in:
parent
e4dc42c9c7
commit
4283c7b822
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ int main(int argc, char *argv[])
|
|||
if ((c >= 'A') && (c <= 'F')) {
|
||||
cur_listener = c + 10 - 'A';
|
||||
}
|
||||
if (old_listener != cur_listener && cur_listener <= MAX) {
|
||||
if (old_listener != cur_listener && cur_listener < MAX) {
|
||||
cls();
|
||||
cerr << "Now listening to " << names[cur_listener] << "\r\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue