summaryrefslogtreecommitdiff
path: root/src/being/compoundsprite.cpp
diff options
context:
space:
mode:
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);