]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Sprite.cpp
Fixed lots of errors spotted by cppcheck
[lugaru.git] / Source / Sprite.cpp
index 5b7c9e1f935899ee1f4642669bd804d0ab75f934..3d9a50c2730a7e7245a2963fdf8c0a849e56d8e4 100644 (file)
@@ -277,7 +277,7 @@ void Sprite::Draw()
         glPopMatrix();
     }
     tempmult = multiplier;
-    for (unsigned i = sprites.size() - 1; i >= 0; i--) {
+    for (int i = sprites.size() - 1; i >= 0; i--) {
         multiplier = tempmult;
         if (sprites[i]->type != snowsprite) {
             sprites[i]->position += sprites[i]->velocity * multiplier;
@@ -416,7 +416,7 @@ void Sprite::Draw()
             DeleteSprite(i);
     }
     if (check)
-        for (unsigned i = sprites.size() - 1; i >= 0; i--) {
+        for (int i = sprites.size() - 1; i >= 0; i--) {
             sprites[i]->oldposition = sprites[i]->position;
         }
     glAlphaFunc(GL_GREATER, 0.0001);