bugfix: update player in undo X-(

This commit is contained in:
Kartik K. Agaram 2024-03-11 22:21:25 -07:00
parent b82b816caf
commit 0d426ca9f5
1 changed files with 1 additions and 0 deletions

View File

@ -183,6 +183,7 @@ function undo_move()
for _,sq in ipairs(undo_state) do
level_state[sq.y][sq.x] = sq.cell
end
player = player_state(level_state)
end
function any_state_in_level(needle)