mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-04 12:49:41 +00:00
Merge pull request #2615 from akortunov/borders
Fix iterator usage when destroying cell borders
This commit is contained in:
commit
eec5d80566
2 changed files with 4 additions and 2 deletions
|
@ -177,6 +177,7 @@
|
||||||
Bug #5210: AiActivate allows actors to open dialogue and inventory windows
|
Bug #5210: AiActivate allows actors to open dialogue and inventory windows
|
||||||
Bug #5211: Screen fades in if the first loaded save is in interior cell
|
Bug #5211: Screen fades in if the first loaded save is in interior cell
|
||||||
Bug #5213: SameFaction script function is broken
|
Bug #5213: SameFaction script function is broken
|
||||||
|
Bug #5218: Crash when disabling ToggleBorders
|
||||||
Feature #1774: Handle AvoidNode
|
Feature #1774: Handle AvoidNode
|
||||||
Feature #2229: Improve pathfinding AI
|
Feature #2229: Improve pathfinding AI
|
||||||
Feature #3025: Analogue gamepad movement controls
|
Feature #3025: Analogue gamepad movement controls
|
||||||
|
|
|
@ -91,8 +91,9 @@ void CellBorder::destroyCellBorderGeometry(int x, int y)
|
||||||
|
|
||||||
void CellBorder::destroyCellBorderGeometry()
|
void CellBorder::destroyCellBorderGeometry()
|
||||||
{
|
{
|
||||||
for (CellGrid::iterator it = mCellBorderNodes.begin(); it != mCellBorderNodes.end(); ++it)
|
for (const auto& v : mCellBorderNodes)
|
||||||
destroyCellBorderGeometry(it->first.first,it->first.second);
|
mRoot->removeChild(v.second);
|
||||||
|
mCellBorderNodes.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue