]> git.lizzy.rs Git - minetest.git/blobdiff - src/game.cpp
Fix crash when no world is selected and configure button is pressed.
[minetest.git] / src / game.cpp
index 488d18f7a7221d3b4d395d436af62b0ff3879b58..588a0fef34cd1dbc43094b754d4b0a8807914dcc 100644 (file)
@@ -2316,6 +2316,8 @@ void the_game(
 
                if(input->getRightState())
                        repeat_rightclick_timer += dtime;
+               else
+                       repeat_rightclick_timer = 0;
 
                if(playeritem_usable && input->getLeftState())
                {