2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-06-06 11:13:28 +00:00

CScriptSpiderBallWaypoint: Small fix in GetClosestPointAlongWaypoints

This commit is contained in:
Luke Street 2022-02-10 23:06:51 -05:00
parent a491e2e9f2
commit f510f1904c

View File

@ -197,7 +197,7 @@ void CScriptSpiderBallWaypoint::GetClosestPointAlongWaypoints(CStateManager& mgr
closestPoint = lastPoint;
if (wp->PreviousWaypoint(mgr, ECheckActiveWaypoint::Check) != kInvalidUniqueId) {
wp = static_cast<const CScriptSpiderBallWaypoint*>(
mgr.GetObjectById(wp->PreviousWaypoint(mgr, ECheckActiveWaypoint::SkipCheck)));
mgr.GetObjectById(wp->PreviousWaypoint(mgr, ECheckActiveWaypoint::Check)));
deltaBetweenPoints = lastPoint - wp->GetTranslation();
interpDeltaBetweenPoints = deltaBetweenPoints;
}