From 4c4caa6ff7b38404893b5d52b21e1203ca9af917 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Wed, 24 Feb 2021 17:36:49 +0300 Subject: [PATCH] v1.5.56 - fix correction for burgs without valid states --- modules/ui/tools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/tools.js b/modules/ui/tools.js index 8277e4ab..ef064bf0 100644 --- a/modules/ui/tools.js +++ b/modules/ui/tools.js @@ -304,7 +304,7 @@ function regenerateEmblems() { else if (burg.port) kinship -= .1; if (state && burg.culture !== state.culture) kinship -= .25; burg.coa = COA.generate(state ? state.coa : null, kinship, null, burg.type); - burg.coa.shield = COA.getShield(burg.culture, state ? burg.state || 0); + burg.coa.shield = COA.getShield(burg.culture, state ? burg.state : 0); }); pack.provinces.forEach(province => {