From ccaf301dc3dd5cf43d9c73e46ef06dfc856fc3f8 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 7 Oct 2023 14:14:02 +0200 Subject: Fix update_aliases so it works with patch_replay.js --- rules.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rules.js b/rules.js index d8de642..a6dfa36 100644 --- a/rules.js +++ b/rules.js @@ -782,10 +782,8 @@ function update_aliases() { } function load_state(state) { - if (game !== state) { - game = state - update_aliases() - } + game = state + update_aliases() } function push_state(next) { -- cgit v1.2.3