From 439dff8840fd45d9a504ec3830a77704ac45fa31 Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Fri, 22 Dec 2017 21:33:00 +0100 Subject: [PATCH] Codacy warning --- src/gui.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui.c b/src/gui.c index a6737f9..bae6466 100644 --- a/src/gui.c +++ b/src/gui.c @@ -24,7 +24,6 @@ clear_sprite_list(LinkedList *list) void gui_set_max_health(Gui *gui, int max, SDL_Renderer *renderer) { - Sprite *sprite; Texture *texture; int i; @@ -38,7 +37,7 @@ gui_set_max_health(Gui *gui, int max, SDL_Renderer *renderer) texture = gui_add_texture(gui, "assets/GUI/GUI0.png", renderer); for (i = 0; i < max/3; ++i) { - sprite = sprite_create(); + Sprite *sprite = sprite_create(); sprite->fixed = true; sprite->clip = (SDL_Rect) { 0, 16, 16, 16 }; sprite->pos = (Position) { 16 + i*16, 16 };