From a50e56e8ff9a75d3a6a6fddae429212274873b4f Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Sun, 6 Aug 2023 15:53:37 -0700 Subject: [PATCH] replace with operator+= --- dGame/dComponents/MovementAIComponent.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dGame/dComponents/MovementAIComponent.cpp b/dGame/dComponents/MovementAIComponent.cpp index 1966638d..1d386de3 100644 --- a/dGame/dComponents/MovementAIComponent.cpp +++ b/dGame/dComponents/MovementAIComponent.cpp @@ -317,8 +317,7 @@ void MovementAIComponent::SetDestination(const NiPoint3& destination) { auto step = delta / 10.0f; for (int i = 0; i < 10; i++) { - // TODO: Replace this with += when the NiPoint3::operator+= is fixed - start = start + step; + start += step; computedPath.push_back(start); }