mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-23 12:31:24 +01:00
FIX: incorrect province copy and minor fix of rebels
This commit is contained in:
parent
006ab7f329
commit
2b1dd01a1e
2 changed files with 2 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ window.Submap = (function () {
|
|||
const validProvinces = new Set(pack.cells.province);
|
||||
pack.provinces = parentMap.pack.provinces;
|
||||
// mark uneccesary provinces
|
||||
pack.states.forEach((s, i) => {
|
||||
pack.provinces.forEach((s, i) => {
|
||||
if (s.removed) return;
|
||||
if (!validProvinces.has(i)) s.removed = true;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue