Skip to content
Snippets Groups Projects
Commit 7513574e authored by Kitty_Barnett's avatar Kitty_Barnett Committed by Kitty Barnett
Browse files

@setoverlay can cause an infinite loop

parent e37ca04e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment