From 4df91305cef4b57adfd83c2320ce954cfc369f92 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 13 Apr 2011 04:25:02 +0300 Subject: Fix compilation warning. --- src/animatedsprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/animatedsprite.cpp') 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 -- cgit v1.2.3-60-g2f50