Index: source/simulation2/components/CCmpUnitMotion.cpp =================================================================== --- source/simulation2/components/CCmpUnitMotion.cpp +++ source/simulation2/components/CCmpUnitMotion.cpp @@ -1003,11 +1003,11 @@ if (cmpObstruction) cmpObstruction->SetMovingFlag(true); if (cmpVisual) - cmpVisual->SelectMovementAnimation(m_Speed > m_WalkSpeed ? "run" : "walk", m_Speed); + cmpVisual->SelectMovementAnimation(speed > m_WalkSpeed ? "run" : "walk", speed); } // Speed change, update the visual actor if necessary. else if (speed != m_CurSpeed && cmpVisual) - cmpVisual->SelectMovementAnimation(m_Speed > m_WalkSpeed ? "run" : "walk", m_Speed); + cmpVisual->SelectMovementAnimation(speed > m_WalkSpeed ? "run" : "walk", speed); m_CurSpeed = speed; }