forked from mirror/openmw-tes3mp
Don't crash when deleting or disabling a moving door
This commit is contained in:
parent
190512156d
commit
a8a09762ce
1 changed files with 1 additions and 1 deletions
|
@ -1153,7 +1153,7 @@ namespace MWWorld
|
||||||
std::map<MWWorld::Ptr, int>::iterator it = mDoorStates.begin();
|
std::map<MWWorld::Ptr, int>::iterator it = mDoorStates.begin();
|
||||||
while (it != mDoorStates.end())
|
while (it != mDoorStates.end())
|
||||||
{
|
{
|
||||||
if (!mWorldScene->isCellActive(*it->first.getCell()))
|
if (!mWorldScene->isCellActive(*it->first.getCell()) || !it->first.getRefData().getBaseNode())
|
||||||
mDoorStates.erase(it++);
|
mDoorStates.erase(it++);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue