mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 03:39:55 +00:00
Make sure the player's controller is properly updated when they change
This commit is contained in:
parent
ee9b19d2ed
commit
2f8affc955
@ -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…
x
Reference in New Issue
Block a user