From 702a1fe954bb99e980e1cab89609b35d7451c8ee Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sun, 29 Mar 2020 02:06:07 +0300 Subject: [PATCH] v1.3.08a --- modules/military-generator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/military-generator.js b/modules/military-generator.js index 561ad757..c738624b 100644 --- a/modules/military-generator.js +++ b/modules/military-generator.js @@ -112,7 +112,7 @@ let army = m * perc; // basic army for rural cell if (u.type === "naval") { - if (!b.port || b.port < 1) continue; // only ports have naval units + if (!b.port || !pack.features[b.port] || b.port < 1) continue; // only ports have naval units army *= normalizeNaval(pack.features[b.port].ports); }