From 01d74a6d4d23454e50dedad4572fbf8dad80f34d Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sat, 24 Jan 2009 15:22:40 +0000 Subject: fixed div by zero bug --- src/game/client/components/console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/client/components/console.cpp') 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; -- cgit 1.4.1