mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
v1.5.59 - fix for cannot remove provinces
This commit is contained in:
parent
635913c2f1
commit
9908188a51
1 changed files with 1 additions and 1 deletions
|
|
@ -356,7 +356,7 @@ function editProvinces() {
|
|||
pack.cells.province.forEach((province, i) => {
|
||||
if(province === p) pack.cells.province[i] = 0;
|
||||
});
|
||||
const s = province.state, state = pack.states[s];
|
||||
const s = pack.provinces[p].state, state = pack.states[s];
|
||||
if (state.provinces.includes(p)) state.provinces.splice(state.provinces.indexOf(p), 1);
|
||||
|
||||
unfog("focusProvince"+p);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue