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 | |
parent | 90de57479f88f8e99b44473a29dcaa9e8579612b (diff) | |
download | manaplus-f107cee8dd903cc539ecd88997d420332fcff4c0.tar.gz manaplus-f107cee8dd903cc539ecd88997d420332fcff4c0.tar.bz2 manaplus-f107cee8dd903cc539ecd88997d420332fcff4c0.tar.xz manaplus-f107cee8dd903cc539ecd88997d420332fcff4c0.zip |
Improve iterator in actorsprite.
-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) |