diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-01-24 15:22:40 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-01-24 15:22:40 +0000 |
| commit | 01d74a6d4d23454e50dedad4572fbf8dad80f34d (patch) | |
| tree | d57b9d572e4a5f6a488f66fcd2fd736330c9e7b3 /src/game | |
| parent | 9d3fd4a28218ad49c10ab768ffda38faf31a9531 (diff) | |
| download | zcatch-01d74a6d4d23454e50dedad4572fbf8dad80f34d.tar.gz zcatch-01d74a6d4d23454e50dedad4572fbf8dad80f34d.zip | |
fixed div by zero bug
Diffstat (limited to 'src/game')
| -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; |