From: Holger Schemel Date: Sun, 16 Oct 2022 10:52:22 +0000 (+0200) Subject: removed shadowing of outer variable by local variable X-Git-Tag: 4.3.3.0~55 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=85d83fd479a42b207af8fc93615568bd4cd19f3c removed shadowing of outer variable by local variable This issue was found by Cppcheck (static C/C++ code analysis tool). --- diff --git a/src/anim.c b/src/anim.c index aa005263..8a1264c2 100644 --- a/src/anim.c +++ b/src/anim.c @@ -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;