summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-07 14:14:02 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commitccaf301dc3dd5cf43d9c73e46ef06dfc856fc3f8 (patch)
tree709b40e73381cacddf1331f4d3e9aa414667abf2
parent8e1e62593d39be73d3d987da7a544ed1e95195a0 (diff)
downloadplantagenet-ccaf301dc3dd5cf43d9c73e46ef06dfc856fc3f8.tar.gz
Fix update_aliases so it works with patch_replay.js
-rw-r--r--rules.js6
1 files 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) {