summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.ts b/rules.ts
index 7c963f1..b8c839c 100644
--- a/rules.ts
+++ b/rules.ts
@@ -4070,7 +4070,7 @@ function search_supply_by_way(result, start: Locale, carts: number, ships: numbe
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