From b272809fa1fc306b1b11c4c3e1d025972653be21 Mon Sep 17 00:00:00 2001 From: Zi Ree Date: Wed, 24 Nov 2021 01:36:22 +0100 Subject: [PATCH] Small cleanup, remove unnecessary variable --- indra/newview/aoengine.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/indra/newview/aoengine.cpp b/indra/newview/aoengine.cpp index d414eeba5d..86be0c3ba2 100644 --- a/indra/newview/aoengine.cpp +++ b/indra/newview/aoengine.cpp @@ -495,14 +495,12 @@ void AOEngine::setStateCycleTimer(const AOSet::AOState* state) } } -const LLUUID AOEngine::override(const LLUUID& pMotion, bool start) +const LLUUID AOEngine::override(const LLUUID& motion, bool start) { - LL_DEBUGS("AOEngine") << "override(" << gAnimLibrary.animationName(pMotion) << "," << start << ")" << LL_ENDL; + LL_DEBUGS("AOEngine") << "override(" << gAnimLibrary.animationName(motion) << "," << start << ")" << LL_ENDL; LLUUID animation; - LLUUID motion = pMotion; - if (!mEnabled) { if (start && mCurrentSet) @@ -537,7 +535,7 @@ const LLUUID AOEngine::override(const LLUUID& pMotion, bool start) // if we are asked to stop-override the same motion as the currently running one, don't // return the overridden animation to be stopped, so we can stop the Linden animation // without killing our overrider when logging in or re-enabling - if (mLastMotion == pMotion && !start) + if (mLastMotion == motion && !start) { LL_DEBUGS("AOEngine") << "Not stop-overriding motion " << gAnimLibrary.animationName(motion) << " within same state." << LL_ENDL;