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:
parent
0c8f85f17d
commit
0545622f5a
@ -248,6 +248,9 @@ namespace MWGui
|
||||
delete mCharGen;
|
||||
mCharGen = new CharacterCreation();
|
||||
mGuiModes.clear();
|
||||
mHud->unsetSelectedWeapon();
|
||||
mHud->unsetSelectedSpell();
|
||||
unsetForceHide(GW_ALL);
|
||||
}
|
||||
else
|
||||
allow(GW_ALL);
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user