diff --git a/dGame/dComponents/MovementAIComponentAronwk.cpp b/dGame/dComponents/MovementAIComponentAronwk.cpp index a6c4cc58..37ed5ce5 100644 --- a/dGame/dComponents/MovementAIComponentAronwk.cpp +++ b/dGame/dComponents/MovementAIComponentAronwk.cpp @@ -183,7 +183,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) {