summaryrefslogtreecommitdiff
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
parent90de57479f88f8e99b44473a29dcaa9e8579612b (diff)
downloadplus-f107cee8dd903cc539ecd88997d420332fcff4c0.tar.gz
plus-f107cee8dd903cc539ecd88997d420332fcff4c0.tar.bz2
plus-f107cee8dd903cc539ecd88997d420332fcff4c0.tar.xz
plus-f107cee8dd903cc539ecd88997d420332fcff4c0.zip
Improve iterator in actorsprite.
-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)