diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-29 16:44:55 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-29 16:44:55 +0100 |
commit | 33c73232d062f0d5a1a58979a0518947769ecb3b (patch) | |
tree | 6f8eed3ad6d53a12a114ab4531d466395412be26 /rules.js | |
parent | 5efad42768a6bfaa775dccde8d1af4b92b2344c9 (diff) | |
download | plantagenet-33c73232d062f0d5a1a58979a0518947769ecb3b.tar.gz |
Carlisle and Bamburgh are adjacent to Scotland (one-way).
Fixes bug with Supply not being traceable per 4.5.1 exception.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3339,7 +3339,7 @@ function search_supply_by_way(result, start, carts, ships) { let dist = search_dist[here]; let next_dist = dist + 8; if (can_supply_at(here, ships)) { - if (result) + if (Array.isArray(result)) map_set(result, here, dist); else return true; |