Index: ps/trunk/source/simulation2/components/CCmpUnitMotion.cpp =================================================================== --- ps/trunk/source/simulation2/components/CCmpUnitMotion.cpp +++ ps/trunk/source/simulation2/components/CCmpUnitMotion.cpp @@ -1050,11 +1050,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; }