From fd590f8353ca131ec82475f3e7bd3aa5bf161413 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Thu, 11 Apr 2024 01:53:34 -0600 Subject: [PATCH] Slightly reduce memory usage (?) for undoing transmutation --- js/game.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/game.js b/js/game.js index 35ba5b6..6f6e1f5 100644 --- a/js/game.js +++ b/js/game.js @@ -2814,8 +2814,7 @@ export class Level extends LevelInterface { }); } else { - tile.type = new_type; - this._push_pending_undo(() => tile.type = old_type); + this._set_tile_prop(tile, 'type', new_type); } // For transmuting into an animation, set up the timer immediately