From fb0d70d55525e429b677f8fabf80e80de344f382 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sat, 30 Mar 2024 23:58:50 +0100 Subject: [PATCH] Fix --- Source/Engine/Navigation/NavCrowd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }