summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 0bf3a17..d59a622 100644
--- a/rules.js
+++ b/rules.js
@@ -782,8 +782,10 @@ function update_aliases() {
}
function load_state(state) {
- game = state
- update_aliases()
+ if (game !== state) {
+ game = state
+ update_aliases()
+ }
}
function push_state(next) {