diff --git a/Source/Engine/Navigation/NavCrowd.cpp b/Source/Engine/Navigation/NavCrowd.cpp index 9cadabc5c..d9607489a 100644 --- a/Source/Engine/Navigation/NavCrowd.cpp +++ b/Source/Engine/Navigation/NavCrowd.cpp @@ -129,7 +129,7 @@ void NavCrowd::SetAgentVelocity(int32 id, const Vector3& velocity) dtCrowdAgent* agent = _crowd->getEditableAgent(id); if (agent) { - *(Float3*)agent->nvel = Float3(velocity); + *(Float3*)agent->vel = Float3(velocity); } }