From 99acc1e2bd0c28bf6216d0950fa9263581c83d02 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sun, 29 Mar 2020 00:19:43 +0300 Subject: [PATCH] v1.3.05a --- 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 8fac3cbe..561ad757 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) continue; // only ports have naval units + if (!b.port || b.port < 1) continue; // only ports have naval units army *= normalizeNaval(pack.features[b.port].ports); }