summaryrefslogtreecommitdiff
path: root/src/simpleanimation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/simpleanimation.cpp')
-rw-r--r--src/simpleanimation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simpleanimation.cpp b/src/simpleanimation.cpp
index a2c765cb8..b067a6de6 100644
--- a/src/simpleanimation.cpp
+++ b/src/simpleanimation.cpp
@@ -118,7 +118,7 @@ bool SimpleAnimation::update(const int timePassed)
mAnimationTime -= mCurrentFrame->delay;
mAnimationPhase++;
- if (static_cast<unsigned>(mAnimationPhase) >= mAnimation->getLength())
+ if (static_cast<size_t>(mAnimationPhase) >= mAnimation->getLength())
mAnimationPhase = 0;
mCurrentFrame = &mAnimation->mFrames[mAnimationPhase];