diff options
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r-- | src/animatedsprite.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp index 806be56df..5e33b65d2 100644 --- a/src/animatedsprite.cpp +++ b/src/animatedsprite.cpp @@ -142,9 +142,10 @@ bool AnimatedSprite::updateCurrentAnimation(unsigned int time) mFrameTime += time; - while (mFrameTime > (unsigned)mFrame->delay && mFrame->delay > 0) + while (mFrameTime > static_cast<unsigned>(mFrame->delay) + && mFrame->delay > 0) { - mFrameTime -= (unsigned)mFrame->delay; + mFrameTime -= static_cast<unsigned>(mFrame->delay); mFrameIndex++; if (mFrameIndex == mAnimation->getLength()) |