From f510f1904cb0adbb0d71d0bac1322e934b81431f Mon Sep 17 00:00:00 2001 From: Luke Street Date: Thu, 10 Feb 2022 23:06:51 -0500 Subject: [PATCH] CScriptSpiderBallWaypoint: Small fix in GetClosestPointAlongWaypoints --- Runtime/World/CScriptSpiderBallWaypoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/World/CScriptSpiderBallWaypoint.cpp b/Runtime/World/CScriptSpiderBallWaypoint.cpp index 986ba209e..73d1f2425 100644 --- a/Runtime/World/CScriptSpiderBallWaypoint.cpp +++ b/Runtime/World/CScriptSpiderBallWaypoint.cpp @@ -197,7 +197,7 @@ void CScriptSpiderBallWaypoint::GetClosestPointAlongWaypoints(CStateManager& mgr closestPoint = lastPoint; if (wp->PreviousWaypoint(mgr, ECheckActiveWaypoint::Check) != kInvalidUniqueId) { wp = static_cast( - mgr.GetObjectById(wp->PreviousWaypoint(mgr, ECheckActiveWaypoint::SkipCheck))); + mgr.GetObjectById(wp->PreviousWaypoint(mgr, ECheckActiveWaypoint::Check))); deltaBetweenPoints = lastPoint - wp->GetTranslation(); interpDeltaBetweenPoints = deltaBetweenPoints; }