diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-11 20:34:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-11 20:34:34 +0300 |
commit | f107cee8dd903cc539ecd88997d420332fcff4c0 (patch) | |
tree | 39983b48b799f7dda2e201e6e551fdebff1e9a3e /src/actorsprite.cpp | |
parent | 90de57479f88f8e99b44473a29dcaa9e8579612b (diff) | |
download | mv-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.cpp | 5 |
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) |