summaryrefslogtreecommitdiff
path: root/src/actorsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-11 20:34:34 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-11 20:34:34 +0300
commitf107cee8dd903cc539ecd88997d420332fcff4c0 (patch)
tree39983b48b799f7dda2e201e6e551fdebff1e9a3e /src/actorsprite.cpp
parent90de57479f88f8e99b44473a29dcaa9e8579612b (diff)
downloadmv-f107cee8dd903cc539ecd88997d420332fcff4c0.tar.gz
mv-f107cee8dd903cc539ecd88997d420332fcff4c0.tar.bz2
mv-f107cee8dd903cc539ecd88997d420332fcff4c0.tar.xz
mv-f107cee8dd903cc539ecd88997d420332fcff4c0.zip
Improve iterator in actorsprite.
Diffstat (limited to 'src/actorsprite.cpp')
-rw-r--r--src/actorsprite.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp
index 4611ddbd2..2b1fccc23 100644
--- a/src/actorsprite.cpp
+++ b/src/actorsprite.cpp
@@ -322,9 +322,8 @@ void ActorSprite::setupSpriteDisplay(const SpriteDisplay &display,
{
clear();
- SpriteRefs it, it_end;
-
- for (it = display.sprites.begin(), it_end = display.sprites.end();
+ for (SpriteRefs it = display.sprites.begin(),
+ it_end = display.sprites.end();
it != it_end; ++it)
{
if (!*it)