forked from mirror/openmw-tes3mp
Make sure the player's controller is properly updated when they change
This commit is contained in:
parent
ee9b19d2ed
commit
2f8affc955
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue