1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-02 10:45:34 +00:00

Check creature stats only for actors

This commit is contained in:
Andrei Kortunov 2018-06-12 11:27:18 +04:00
parent b0a140e714
commit e3812f4075

View file

@ -847,7 +847,7 @@ CharacterController::CharacterController(const MWWorld::Ptr &ptr, MWRender::Anim
} }
// Do not update animation status for dead actors // Do not update animation status for dead actors
if(mDeathState == CharState_None && !cls.getCreatureStats(mPtr).isDead()) if(mDeathState == CharState_None && (!cls.isActor() || !cls.getCreatureStats(mPtr).isDead()))
refreshCurrentAnims(mIdleState, mMovementState, mJumpState, true); refreshCurrentAnims(mIdleState, mMovementState, mJumpState, true);
mAnimation->runAnimation(0.f); mAnimation->runAnimation(0.f);