summaryrefslogtreecommitdiff
path: root/src/actorsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actorsprite.cpp')
-rw-r--r--src/actorsprite.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp
index 58ffa6e7..ab220d45 100644
--- a/src/actorsprite.cpp
+++ b/src/actorsprite.cpp
@@ -112,12 +112,11 @@ void ActorSprite::logic()
if (mMustResetParticles)
{
mMustResetParticles = false;
- for (auto it = mStatusEffects.begin();
- it != mStatusEffects.end(); it++)
+ for (int statusEffect : mStatusEffects)
{
- const StatusEffect *effect = StatusEffect::getStatusEffect(*it, true);
+ const StatusEffect *effect = StatusEffect::getStatusEffect(statusEffect, true);
if (effect && effect->particleEffectIsPersistent())
- updateStatusEffect(*it, true);
+ updateStatusEffect(statusEffect, true);
}
}