From c70eb77c14c340f19adb6af14af0e02a9cfc844a Mon Sep 17 00:00:00 2001 From: Aaron Kimbre Date: Sun, 20 Aug 2023 02:19:34 -0500 Subject: [PATCH] use SetMaxSpeed --- dGame/dComponents/MovementAIComponentAronwk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {