diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/client/components/console.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/client/components/console.cpp b/src/game/client/components/console.cpp index fd5fe8bf..c1493fb8 100644 --- a/src/game/client/components/console.cpp +++ b/src/game/client/components/console.cpp @@ -136,7 +136,7 @@ void CONSOLE::INSTANCE::on_input(INPUT_EVENT e) console_possible_commands(completion_buffer, completion_flagmask, possible_commands_complete_callback, this); // handle wrapping - if(completion_chosen >= completion_enumeration_count) + if(completion_enumeration_count && completion_chosen >= completion_enumeration_count) { completion_chosen %= completion_enumeration_count; completion_enumeration_count = 0; |