v1.5.56 - fix correction for burgs without valid states

This commit is contained in:
Azgaar 2021-02-24 17:36:49 +03:00
parent d8618948ce
commit 4c4caa6ff7

View file

@ -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 => {