Fix for debug crash on windows

actorid
Alexander "Ace" Olofsson 13 years ago
parent 7505c96fbb
commit be8690e333

@ -99,12 +99,14 @@ void Actors::removeCell(MWWorld::Ptr::CellStore* store){
mRend.getScene()->destroySceneNode(base);
base = 0;
}
for(std::map<MWWorld::Ptr, Animation*>::iterator iter = mAllActors.begin(); iter != mAllActors.end(); iter++)
for(std::map<MWWorld::Ptr, Animation*>::iterator iter = mAllActors.begin(); iter != mAllActors.end(); )
{
if(iter->first.getCell() == store){
delete iter->second;
mAllActors.erase(iter);
iter = mAllActors.erase(iter);
}
else
++iter;
}
}

Loading…
Cancel
Save