mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 07:45:33 +00:00
fix invalid SceneNode pointer on cell change
This commit is contained in:
parent
9659b4a95e
commit
d983ed5c78
1 changed files with 5 additions and 1 deletions
|
@ -746,7 +746,11 @@ namespace MWWorld
|
|||
copyObjectToCell(ptr, newCell, pos);
|
||||
else if (!mWorldScene->isCellActive(newCell))
|
||||
{
|
||||
MWWorld::Class::get(ptr).copyToCell(ptr, newCell);
|
||||
MWWorld::Class::get(ptr)
|
||||
.copyToCell(ptr, newCell)
|
||||
.getRefData()
|
||||
.setBaseNode(0);
|
||||
|
||||
mWorldScene->removeObjectFromScene(ptr);
|
||||
mLocalScripts.remove(ptr);
|
||||
removeContainerScripts (ptr);
|
||||
|
|
Loading…
Reference in a new issue