mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 07:23:51 +00:00
reset reference to player NPC record during cleanup
This commit is contained in:
parent
1b7697a4b2
commit
6584a01d01
1 changed files with 4 additions and 3 deletions
|
@ -276,15 +276,16 @@ namespace MWWorld
|
|||
|
||||
mWorldScene->changeToVoid();
|
||||
|
||||
mStore.clearDynamic();
|
||||
mStore.setUp();
|
||||
|
||||
if (mPlayer)
|
||||
{
|
||||
mPlayer->setCell (0);
|
||||
mPlayer->getPlayer().getRefData() = RefData();
|
||||
mPlayer->set (mStore.get<ESM::NPC>().find ("player"));
|
||||
}
|
||||
|
||||
mStore.clearDynamic();
|
||||
mStore.setUp();
|
||||
|
||||
mCells.clear();
|
||||
|
||||
mProjectiles.clear();
|
||||
|
|
Loading…
Reference in a new issue