From cfcc0a946d8930a913b25b2b6629ba5834b0c061 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Thu, 16 Jun 2011 22:52:36 -0500 Subject: [PATCH] mAutoPilotFinishedCallback cleared upon autopilot termination. --- indra/newview/llagent.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 618fb7626..12132d4d4 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -1428,6 +1428,7 @@ void LLAgent::stopAutoPilot(BOOL user_cancel) if (mAutoPilotFinishedCallback) { mAutoPilotFinishedCallback(!user_cancel && dist_vec_squared(gAgent.getPositionGlobal(), mAutoPilotTargetGlobal) < (mAutoPilotStopDistance * mAutoPilotStopDistance), mAutoPilotCallbackData); + mAutoPilotFinishedCallback = NULL; } mLeaderID = LLUUID::null;