Merge remote-tracking branch 'scrawl/master'

This commit is contained in:
Marc Zinnschlag 2013-11-23 12:44:01 +01:00
commit 59f8979090
2 changed files with 3 additions and 2 deletions

View file

@ -35,7 +35,7 @@ namespace MWRender
, mCamera(NULL)
, mNode(NULL)
{
mCharacter.mCell = NULL;
}
void CharacterPreview::onSetup()
@ -230,7 +230,7 @@ namespace MWRender
, mRef(&mBase)
{
mBase = *mCharacter.get<ESM::NPC>()->mBase;
mCharacter = MWWorld::Ptr(&mRef, mCharacter.getCell());
mCharacter = MWWorld::Ptr(&mRef, NULL);
}
void RaceSelectionPreview::update(float angle)

View file

@ -267,6 +267,7 @@ namespace MWWorld
// Rebuild player
setupPlayer();
mPlayer->setCell(NULL);
MWWorld::Ptr player = mPlayer->getPlayer();
// removes NpcStats, ContainerStore etc