diff options
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r-- | src/animatedsprite.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp index f58ef62cc..5d5c1ee18 100644 --- a/src/animatedsprite.cpp +++ b/src/animatedsprite.cpp @@ -268,16 +268,16 @@ unsigned int AnimatedSprite::getFrameCount() const int AnimatedSprite::getWidth() const { - if (mFrame) - return mFrame->image ? mFrame->image->getWidth() : 0; + if (mFrame && mFrame->image) + return mFrame->image->getWidth(); else return 0; } int AnimatedSprite::getHeight() const { - if (mFrame) - return mFrame->image ? mFrame->image->getHeight() : 0; + if (mFrame && mFrame->image) + return mFrame->image->getHeight(); else return 0; } |