From a306ecf96736779b08d1de7ec994d3d741d5dc61 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 Mar 2013 18:28:47 +0300 Subject: fix code style. --- src/simpleanimation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/simpleanimation.cpp') 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(mAnimation->getLength()); if (static_cast(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); -- cgit v1.2.3-60-g2f50