summaryrefslogtreecommitdiff
path: root/src/animatedsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-13 04:25:02 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-13 04:25:02 +0300
commit4df91305cef4b57adfd83c2320ce954cfc369f92 (patch)
tree5158c9f590632208769b9a94e1a0df3cc2454eec /src/animatedsprite.cpp
parentc978b7f0d9de1bb6bd84cd299ed80c27c5147927 (diff)
downloadmv-4df91305cef4b57adfd83c2320ce954cfc369f92.tar.gz
mv-4df91305cef4b57adfd83c2320ce954cfc369f92.tar.bz2
mv-4df91305cef4b57adfd83c2320ce954cfc369f92.tar.xz
mv-4df91305cef4b57adfd83c2320ce954cfc369f92.zip
Fix compilation warning.
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r--src/animatedsprite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp
index 1069bcf47..61223a876 100644
--- a/src/animatedsprite.cpp
+++ b/src/animatedsprite.cpp
@@ -162,7 +162,7 @@ bool AnimatedSprite::updateCurrentAnimation(unsigned int time)
{
if (mFrame->rand == 100 || rand() % 100 <= mFrame->rand)
{
- for (int i = 0; i < mAnimation->getLength(); i ++)
+ for (unsigned i = 0; i < mAnimation->getLength(); i ++)
{
Frame *frame = mAnimation->getFrame(i);
if (frame->type == Frame::LABEL