1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 14:23:53 +00:00

Bug #1063: Safety check in moveObject. Required when items in containers execute script commands like setAtStart etc.

This commit is contained in:
scrawl 2014-01-02 02:27:48 +01:00
parent 0f2b2fabdb
commit 993edf0384

View file

@ -911,7 +911,7 @@ namespace MWWorld
ptr.getRefData().setCount(0);
}
}
if (haveToMove)
if (haveToMove && ptr.getRefData().getBaseNode())
{
mRendering->moveObject(ptr, vec);
mPhysics->moveObject (ptr);