mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
fixed div by zero bug
This commit is contained in:
parent
9d3fd4a282
commit
01d74a6d4d
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue