summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index f1f229d..f5d8a2d 100644
--- a/rules.js
+++ b/rules.js
@@ -2593,9 +2593,12 @@ function should_enter_reserve(c) {
return map_get(game.cubes, S37_THE_FOG, 0) === 0
}
- for (let t of reserve)
- if (is_routed(t))
- return true
+ if (Array.isArray(reserve)) {
+ for (let t of reserve) {
+ if (is_routed(t))
+ return true
+ }
+ }
if (game.scenario === S30_EDGEHILL) {
if (c === S30_BALFOUR || c === S30_STAPLETON) {