reset reference to player NPC record during cleanup

actorid
Marc Zinnschlag 11 years ago
parent 1b7697a4b2
commit 6584a01d01

@ -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…
Cancel
Save