projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b93198
)
removed shadowing of outer variable by local variable
author
Holger Schemel
<info@artsoft.org>
Sun, 16 Oct 2022 10:52:22 +0000
(12:52 +0200)
committer
Holger 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
patch
|
blob
|
history
diff --git
a/src/anim.c
b/src/anim.c
index aa005263a2f03c0feb619382b0ebdd60398fb5ad..8a1264c2314da0fd79ec204451bf58bfd7dede6c 100644
(file)
--- 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;