From ac5a189d13d2612f881d79a9d45765cdd02fd2ec Mon Sep 17 00:00:00 2001 From: yukirij Date: Sun, 24 Nov 2024 13:28:26 -0800 Subject: [PATCH] Fix copy/paste error. --- www/js/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/game.js b/www/js/game.js index b07d7f0..ad91c23 100644 --- a/www/js/game.js +++ b/www/js/game.js @@ -646,7 +646,7 @@ GAME.Game = class { // Check all tiles if not blocking. if(block_directions == 0) { for(let i = 0; i < GAME_DATA.board.tiles.length; ++i) { - if(this.board.tiles[tile_id].piece === null) { + if(this.board.tiles[i].piece === null) { tiles.push(new GAME.MovementTile(i, true, false, 0, 0)); } }