Make sure the player's controller is properly updated when they change

This commit is contained in:
Chris Robinson 2013-02-04 12:58:06 -08:00
parent ee9b19d2ed
commit 2f8affc955

View file

@ -309,6 +309,12 @@ namespace MWMechanics
}
winMgr->configureSkills (majorSkills, minorSkills);
// HACK? The player has been changed, so a new Animation object may
// have been made for them. Make sure they're properly updated.
MWWorld::Ptr ptr = MWBase::Environment::get().getWorld()->getPlayer().getPlayer();
mActors.removeActor(ptr);
mActors.addActor(ptr);
}
mActors.update(duration, paused);