diff options
Diffstat (limited to 'src/simpleanimation.cpp')
-rw-r--r-- | src/simpleanimation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simpleanimation.cpp b/src/simpleanimation.cpp index 91f491ffe..14996f577 100644 --- a/src/simpleanimation.cpp +++ b/src/simpleanimation.cpp @@ -97,7 +97,7 @@ void SimpleAnimation::setFrame(int frame) if (frame < 0) frame = 0; - const unsigned int len = mAnimation->getLength(); + const unsigned int len = static_cast<unsigned>(mAnimation->getLength()); if (static_cast<unsigned>(frame) >= len) frame = len - 1; mAnimationPhase = frame; @@ -106,7 +106,7 @@ void SimpleAnimation::setFrame(int frame) bool SimpleAnimation::update(const int timePassed) { - if (!mCurrentFrame || !mAnimation || !mInitialized || !mAnimation) + if (!mCurrentFrame || !mAnimation || !mInitialized) return false; bool updated(false); |