1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

fixed broken iterator

This commit is contained in:
Marc Zinnschlag 2014-10-17 14:23:37 +02:00
parent 8a05c0e5c0
commit 994159fafd

View file

@ -42,9 +42,6 @@ bool CSVRender::PagedWorldspaceWidget::adjustCells()
if (!mSelection.has (iter->first) || index==-1 ||
cells.getRecord (index).mState==CSMWorld::RecordBase::State_Deleted)
{
delete iter->second;
mCells.erase (iter);
// delete overlays
std::map<CSMWorld::CellCoordinates, TextOverlay *>::iterator itOverlay = mTextOverlays.find(iter->first);
if(itOverlay != mTextOverlays.end())
@ -56,7 +53,9 @@ bool CSVRender::PagedWorldspaceWidget::adjustCells()
// destroy manual objects
getSceneManager()->destroyManualObject("manual"+iter->first.getId(mWorldspace));
iter++;
delete iter->second;
mCells.erase (iter++);
modified = true;
}
else