From 85d83fd479a42b207af8fc93615568bd4cd19f3c Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 16 Oct 2022 12:52:22 +0200 Subject: [PATCH] removed shadowing of outer variable by local variable This issue was found by Cppcheck (static C/C++ code analysis tool). --- src/anim.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.34.1