This commit is contained in:
Azgaar 2020-03-29 00:19:43 +03:00
parent d1c795494d
commit 99acc1e2bd

View file

@ -112,7 +112,7 @@
let army = m * perc; // basic army for rural cell let army = m * perc; // basic army for rural cell
if (u.type === "naval") { 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); army *= normalizeNaval(pack.features[b.port].ports);
} }