fix(#905): make sure burg0 is not getting locked [v.1.88.05]

This commit is contained in:
Azgaar 2022-12-15 15:43:40 +03:00
parent ce07c20fff
commit 3883933385
5 changed files with 15 additions and 6 deletions

View file

@ -261,7 +261,7 @@ function regenerateProvinces() {
function regenerateBurgs() {
const {cells, states} = pack;
const lockedburgs = pack.burgs.filter(b => b.lock);
const lockedburgs = pack.burgs.filter(b => b.i && !b.removed && b.lock);
rankCells();
cells.burg = new Uint16Array(cells.i.length);