diff --git a/dGame/dComponents/MovementAIComponentAronwk.cpp b/dGame/dComponents/MovementAIComponentAronwk.cpp index 367c01aa..97e0a4ea 100644 --- a/dGame/dComponents/MovementAIComponentAronwk.cpp +++ b/dGame/dComponents/MovementAIComponentAronwk.cpp @@ -168,7 +168,7 @@ void MovementAIComponent::HandleWaypointCommandTeleport(const std::string& data) void MovementAIComponent::HandleWaypointCommandPathSpeed(const std::string& data) { float speed = 0.0; if (!GeneralUtils::TryParse(data, speed)) return; - SetCurrentSpeed(speed); + SetMaxSpeed(speed); } void MovementAIComponent::HandleWaypointCommandRemoveNPC(const std::string& data) {