forked from mirror/openmw-tes3mp
fixed broken iterator
This commit is contained in:
parent
8a05c0e5c0
commit
994159fafd
1 changed files with 3 additions and 4 deletions
|
@ -42,9 +42,6 @@ bool CSVRender::PagedWorldspaceWidget::adjustCells()
|
||||||
if (!mSelection.has (iter->first) || index==-1 ||
|
if (!mSelection.has (iter->first) || index==-1 ||
|
||||||
cells.getRecord (index).mState==CSMWorld::RecordBase::State_Deleted)
|
cells.getRecord (index).mState==CSMWorld::RecordBase::State_Deleted)
|
||||||
{
|
{
|
||||||
delete iter->second;
|
|
||||||
mCells.erase (iter);
|
|
||||||
|
|
||||||
// delete overlays
|
// delete overlays
|
||||||
std::map<CSMWorld::CellCoordinates, TextOverlay *>::iterator itOverlay = mTextOverlays.find(iter->first);
|
std::map<CSMWorld::CellCoordinates, TextOverlay *>::iterator itOverlay = mTextOverlays.find(iter->first);
|
||||||
if(itOverlay != mTextOverlays.end())
|
if(itOverlay != mTextOverlays.end())
|
||||||
|
@ -56,7 +53,9 @@ bool CSVRender::PagedWorldspaceWidget::adjustCells()
|
||||||
// destroy manual objects
|
// destroy manual objects
|
||||||
getSceneManager()->destroyManualObject("manual"+iter->first.getId(mWorldspace));
|
getSceneManager()->destroyManualObject("manual"+iter->first.getId(mWorldspace));
|
||||||
|
|
||||||
iter++;
|
delete iter->second;
|
||||||
|
mCells.erase (iter++);
|
||||||
|
|
||||||
modified = true;
|
modified = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue