1
0
Fork 1
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:
Marc Zinnschlag 2014-01-18 14:53:25 +01:00
parent 1b7697a4b2
commit 6584a01d01

View file

@ -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();