From 1f6c84c17ab0338e413b9f38321bb64399d68b41 Mon Sep 17 00:00:00 2001 From: Steven Arnow Date: Tue, 31 Dec 2013 06:11:14 +0100 Subject: [PATCH] This, apparently, makes all valgrind errors go away --- src/nebulae.c | 2 +- src/weapon.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nebulae.c b/src/nebulae.c index a35acb0..677989c 100644 --- a/src/nebulae.c +++ b/src/nebulae.c @@ -7,7 +7,7 @@ #include #include "nebulae.h" -#include "SDL_image.h" +#include "SDL/SDL_image.h" #include "lephisto.h" #include "log.h" diff --git a/src/weapon.c b/src/weapon.c index e1a89e9..d2faa7f 100644 --- a/src/weapon.c +++ b/src/weapon.c @@ -698,6 +698,7 @@ static Weapon* weapon_create(const Outfit* outfit, const double dir, const Vec2* w->update = weapon_update; w->think = NULL; w->status = WEAPON_STATUS_OK; + w->timer = 0.0; switch(outfit->type) { /* Bolts treated together. */