From f684996f828cbb1eaf72d105ae1302f911d79718 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Mon, 23 Dec 2019 19:47:44 +0300 Subject: [PATCH] v1.22.30 --- modules/burgs-and-states.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/burgs-and-states.js b/modules/burgs-and-states.js index 019d00f1..a573d57b 100644 --- a/modules/burgs-and-states.js +++ b/modules/burgs-and-states.js @@ -842,7 +842,7 @@ const provinces = pack.provinces = [0]; cells.province = new Uint16Array(cells.i.length); // cell state const percentage = +provincesInput.value; - if (states.length < 2 || !percentage) return; // no provinces + if (states.length < 2 || !percentage) {states.forEach(s => s.provinces = []); return;} // no provinces const max = percentage == 100 ? 1000 : gauss(20, 5, 5, 100) * percentage ** .5; // max growth const forms = {