summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-11-01 13:51:10 +0100
committerTor Andersson <tor@ccxvii.net>2023-11-01 13:51:26 +0100
commit94ed8076c2346d31161d156fee1d4f27f5ff0a3f (patch)
treee0f0f6e8baf9a14af97d23e620ce9173a2ea757f
parentac488293534d3861e2f7cdf125e0721e3c21af52 (diff)
downloadalgeria-94ed8076c2346d31161d156fee1d4f27f5ff0a3f.tar.gz
fix quick setup undo bug
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 96ca689..e3bd17c 100644
--- a/rules.js
+++ b/rules.js
@@ -1559,7 +1559,7 @@ states.scenario_setup = {
if (current_player_quick_setup()) {
// only allow quick-setup as the very first action
- if (game.undo.length === 0)
+ if (game.undo && game.undo.length === 0)
view.actions.quick_setup = 1
}
} else {