summaryrefslogtreecommitdiff
path: root/src/being/compoundsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-08 22:47:02 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-08 22:47:02 +0300
commit8daa939a45794c26a33e109c13c4d6f58a46e00e (patch)
treefa0c2f40eec569816cfa2565f1070ddd90f57bf3 /src/being/compoundsprite.cpp
parent6d4da51f0fdcecc2d4398f60dbca43f499fdbe16 (diff)
downloadmanaplus-8daa939a45794c26a33e109c13c4d6f58a46e00e.tar.gz
manaplus-8daa939a45794c26a33e109c13c4d6f58a46e00e.tar.bz2
manaplus-8daa939a45794c26a33e109c13c4d6f58a46e00e.tar.xz
manaplus-8daa939a45794c26a33e109c13c4d6f58a46e00e.zip
Fix code style in being
Diffstat (limited to 'src/being/compoundsprite.cpp')
-rw-r--r--src/being/compoundsprite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being/compoundsprite.cpp b/src/being/compoundsprite.cpp
index 26a2268f3..91da283a4 100644
--- a/src/being/compoundsprite.cpp
+++ b/src/being/compoundsprite.cpp
@@ -288,7 +288,7 @@ void CompoundSprite::ensureSize(size_t layerCount)
*/
unsigned int CompoundSprite::getCurrentFrame(unsigned int layer) const
{
- if (layer >= mSprites.size())
+ if (layer >= static_cast<unsigned int>(mSprites.size()))
return 0;
const Sprite *const s = getSprite(layer);
@@ -303,7 +303,7 @@ unsigned int CompoundSprite::getCurrentFrame(unsigned int layer) const
*/
unsigned int CompoundSprite::getFrameCount(unsigned int layer)
{
- if (layer >= mSprites.size())
+ if (layer >= static_cast<unsigned int>(mSprites.size()))
return 0;
const Sprite *const s = getSprite(layer);