diff --git a/xtrn/dicewarz2/game.js b/xtrn/dicewarz2/game.js
index b99adc147d3ef11f7476676fd562b6b526daf499..9d1f09a693324f78c7913a0123dfe841ba6a7da4 100644
--- a/xtrn/dicewarz2/game.js
+++ b/xtrn/dicewarz2/game.js
@@ -650,7 +650,7 @@ function playGame(gameNumber) {
 		while(1) {
 			cycle();
 			var cmd=input.getkey(hotkeys);
-			if(!cmd)
+			if(cmd === undefined)
 				continue;
 			switch(cmd) {
 			case KEY_UP: