1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 07:53:51 +00:00

Don't crash when deleting or disabling a moving door

This commit is contained in:
scrawl 2014-01-28 19:03:20 +01:00
parent 190512156d
commit a8a09762ce

View file

@ -1153,7 +1153,7 @@ namespace MWWorld
std::map<MWWorld::Ptr, int>::iterator it = mDoorStates.begin();
while (it != mDoorStates.end())
{
if (!mWorldScene->isCellActive(*it->first.getCell()))
if (!mWorldScene->isCellActive(*it->first.getCell()) || !it->first.getRefData().getBaseNode())
mDoorStates.erase(it++);
else
{