removed shadowing of outer variable by local variable
authorHolger Schemel <info@artsoft.org>
Sun, 16 Oct 2022 10:52:22 +0000 (12:52 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 16 Oct 2022 10:52:22 +0000 (12:52 +0200)
This issue was found by Cppcheck (static C/C++ code analysis tool).

src/anim.c

index aa005263a2f03c0feb619382b0ebdd60398fb5ad..8a1264c2314da0fd79ec204451bf58bfd7dede6c 100644 (file)
@@ -411,7 +411,8 @@ static void InitToonControls(void)
     int sound = SND_UNDEFINED;
     int music = MUS_UNDEFINED;
     int graphic = IMG_TOON_1 + i;
-    int control = graphic;
+
+    control = graphic;
 
     part->nr = part_nr;
     part->anim_nr = anim_nr;