summaryrefslogtreecommitdiff
path: root/src/actorsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actorsprite.cpp')
-rw-r--r--src/actorsprite.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp
index 09d924070..f22a0f1da 100644
--- a/src/actorsprite.cpp
+++ b/src/actorsprite.cpp
@@ -405,7 +405,8 @@ void ActorSprite::loadTargetCursor(const std::string &filename,
Animation *const anim = new Animation;
- for (size_t i = 0; i < currentImageSet->size(); ++i)
+ const size_t sz = currentImageSet->size();
+ for (size_t i = 0; i < sz; ++i)
{
anim->addFrame(currentImageSet->get(i), 75,
(16 - (currentImageSet->getWidth() / 2)),