1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

Fix physics bug

This commit is contained in:
scrawl 2015-12-06 22:10:01 +01:00
parent 51b892195b
commit 4b0ecaa0a0
2 changed files with 1 additions and 1 deletions

View file

@ -246,6 +246,7 @@ namespace MWWorld
{
MWWorld::Ptr copied = object.getClass().copyToCell(object, *cellToMoveTo);
object.getRefData().setCount(0);
object.getRefData().setBaseNode(NULL);
return copied;
}

View file

@ -1171,7 +1171,6 @@ namespace MWWorld
newPtr = currCell->moveTo(ptr, newCell);
mRendering->updatePtr(ptr, newPtr);
ptr.getRefData().setBaseNode(NULL);
MWBase::Environment::get().getSoundManager()->updatePtr (ptr, newPtr);
mPhysics->updatePtr(ptr, newPtr);