fix modulo by zero

This commit is contained in:
Not 2022-09-02 22:49:00 +02:00
parent 4165639282
commit d7dc3336dd
1 changed files with 1 additions and 1 deletions

View File

@ -399,7 +399,7 @@ local function controller(player)
updateKeyRepeat()
elseif cmd.buttons & BT_DRIFT then
scrollPos = 1
if modes then
if modes and #modes then
mode = $ % #modes + 1
prefMode = modes[mode]
end