summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-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 {