1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00

Fix werewolf state not getting completely reset when starting a new game

This commit is contained in:
scrawl 2013-08-20 11:04:26 +02:00
parent 0c8f85f17d
commit 0545622f5a
2 changed files with 6 additions and 2 deletions

View File

@ -248,6 +248,9 @@ namespace MWGui
delete mCharGen;
mCharGen = new CharacterCreation();
mGuiModes.clear();
mHud->unsetSelectedWeapon();
mHud->unsetSelectedSpell();
unsetForceHide(GW_ALL);
}
else
allow(GW_ALL);

View File

@ -240,12 +240,13 @@ namespace MWWorld
// Rebuild player
setupPlayer();
MWWorld::Ptr player = mPlayer->getPlayer();
renderPlayer();
mRendering->resetCamera();
// removes NpcStats, ContainerStore etc
player.getRefData().setCustomData(NULL);
renderPlayer();
mRendering->resetCamera();
// make sure to do this so that local scripts from items that were in the players inventory are removed
mLocalScripts.clear();