From 62b963e643be29c0727099774cd71a951409ceef Mon Sep 17 00:00:00 2001 From: Linus_Probert Date: Tue, 23 Jan 2018 14:45:05 +0100 Subject: [PATCH] More codacy stuff --- src/gui.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui.c b/src/gui.c index cb3391d..998353d 100644 --- a/src/gui.c +++ b/src/gui.c @@ -93,7 +93,6 @@ gui_set_max_health(Gui *gui, int max, SDL_Renderer *renderer) void gui_set_current_health(Gui *gui, int current) { - Sprite *sprite; int partial = current % 3; int full = (current - partial)/3; int count = 0; @@ -103,7 +102,7 @@ gui_set_current_health(Gui *gui, int current) LinkedList *item = gui->health; while (item != NULL) { - sprite = (Sprite*) item->data; + Sprite *sprite = (Sprite*) item->data; if (count < full) { sprite->clip.x = 0; } else if (count == full) {