@setoverlay can cause an infinite loop

meow-7.2.2
Kitty_Barnett 2021-05-16 22:32:16 +02:00 committed by Kitty Barnett
parent 4f0c170a24
commit 110b89e485
1 changed files with 2 additions and 2 deletions

View File

@ -116,9 +116,9 @@ void LLVfxManager::runEffect(EVisualEffect eCode, LLVisualEffectParams* pParams)
endEffect = boost::make_filter_iterator(pred, m_Effects.end(), m_Effects.end());
while (itEffect != endEffect)
{
LLVisualEffect* pEffect = *itEffect;
LLVisualEffect* pEffect = *itEffect++;
if (pParams)
pParams->step(++itEffect == endEffect);
pParams->step(itEffect == endEffect);
pEffect->run(pParams);
}
}