Small cleanup, remove unnecessary variable

master
Zi Ree 2021-11-24 01:36:22 +01:00
parent b2bb14a008
commit b272809fa1
1 changed files with 3 additions and 5 deletions

View File

@ -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;