From 33c73232d062f0d5a1a58979a0518947769ecb3b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 29 Nov 2024 16:44:55 +0100 Subject: Carlisle and Bamburgh are adjacent to Scotland (one-way). Fixes bug with Supply not being traceable per 4.5.1 exception. --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 64c2a23..73a5cc3 100644 --- a/rules.js +++ b/rules.js @@ -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; -- cgit v1.2.3