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:
parent
0f2b2fabdb
commit
993edf0384
1 changed files with 1 additions and 1 deletions
|
@ -911,7 +911,7 @@ namespace MWWorld
|
|||
ptr.getRefData().setCount(0);
|
||||
}
|
||||
}
|
||||
if (haveToMove)
|
||||
if (haveToMove && ptr.getRefData().getBaseNode())
|
||||
{
|
||||
mRendering->moveObject(ptr, vec);
|
||||
mPhysics->moveObject (ptr);
|
||||
|
|
Loading…
Reference in a new issue