summaryrefslogtreecommitdiff
path: root/src/actorsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-25 02:26:34 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-25 02:26:34 +0300
commitc9f43996f3147100627ee2c6f9da993ceb160113 (patch)
tree7577f02f4658b19e05d586f66b67a9a4f5fedb7e /src/actorsprite.cpp
parent8e19f9b9d792cf4d3d3b022fd26a258c3d3d97bf (diff)
downloadmanaverse-c9f43996f3147100627ee2c6f9da993ceb160113.tar.gz
manaverse-c9f43996f3147100627ee2c6f9da993ceb160113.tar.bz2
manaverse-c9f43996f3147100627ee2c6f9da993ceb160113.tar.xz
manaverse-c9f43996f3147100627ee2c6f9da993ceb160113.zip
Improve iterators part 2.
Diffstat (limited to 'src/actorsprite.cpp')
-rw-r--r--src/actorsprite.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp
index e558e2469..e86c886e4 100644
--- a/src/actorsprite.cpp
+++ b/src/actorsprite.cpp
@@ -116,8 +116,8 @@ void ActorSprite::logic()
if (mMustResetParticles)
{
mMustResetParticles = false;
- for (std::set<int>::const_iterator it = mStatusEffects.begin();
- it != mStatusEffects.end(); ++it)
+ for (std::set<int>::const_iterator it = mStatusEffects.begin(),
+ it_end = mStatusEffects.end(); it != it_end; ++it)
{
const StatusEffect *effect
= StatusEffect::getStatusEffect(*it, true);
@@ -372,9 +372,7 @@ void ActorSprite::setupSpriteDisplay(const SpriteDisplay &display,
//setup particle effects
if (Particle::enabled && particleEngine)
{
- StringVectCIter itr;
- StringVectCIter itr_end;
- for (itr = display.particles.begin(),
+ for (StringVectCIter itr = display.particles.begin(),
itr_end = display.particles.end();
itr != itr_end; ++itr)
{