mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-06 05:45:31 +00:00
Fix crash caused by dangling baseNode pointer
This commit is contained in:
parent
7e8ca3fff1
commit
ed2aa5a233
1 changed files with 1 additions and 0 deletions
|
@ -1158,6 +1158,7 @@ namespace MWWorld
|
|||
ptr.getClass().copyToCell(ptr, *newCell, pos);
|
||||
|
||||
mRendering->updateObjectCell(ptr, copy);
|
||||
ptr.getRefData().setBaseNode(NULL);
|
||||
MWBase::Environment::get().getSoundManager()->updatePtr (ptr, copy);
|
||||
|
||||
MWBase::MechanicsManager *mechMgr = MWBase::Environment::get().getMechanicsManager();
|
||||
|
|
Loading…
Reference in a new issue