diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:47:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:47:02 +0300 |
commit | 8daa939a45794c26a33e109c13c4d6f58a46e00e (patch) | |
tree | fa0c2f40eec569816cfa2565f1070ddd90f57bf3 /src/being/compoundsprite.cpp | |
parent | 6d4da51f0fdcecc2d4398f60dbca43f499fdbe16 (diff) | |
download | manaverse-8daa939a45794c26a33e109c13c4d6f58a46e00e.tar.gz manaverse-8daa939a45794c26a33e109c13c4d6f58a46e00e.tar.bz2 manaverse-8daa939a45794c26a33e109c13c4d6f58a46e00e.tar.xz manaverse-8daa939a45794c26a33e109c13c4d6f58a46e00e.zip |
Fix code style in being
Diffstat (limited to 'src/being/compoundsprite.cpp')
-rw-r--r-- | src/being/compoundsprite.cpp | 4 |
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); |