This, apparently, makes all valgrind errors go away

This commit is contained in:
Steven Arnow 2013-12-31 06:11:14 +01:00
parent 6322d7675d
commit 1f6c84c17a
2 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,7 @@
#include <errno.h> #include <errno.h>
#include "nebulae.h" #include "nebulae.h"
#include "SDL_image.h" #include "SDL/SDL_image.h"
#include "lephisto.h" #include "lephisto.h"
#include "log.h" #include "log.h"

View File

@ -698,6 +698,7 @@ static Weapon* weapon_create(const Outfit* outfit, const double dir, const Vec2*
w->update = weapon_update; w->update = weapon_update;
w->think = NULL; w->think = NULL;
w->status = WEAPON_STATUS_OK; w->status = WEAPON_STATUS_OK;
w->timer = 0.0;
switch(outfit->type) { switch(outfit->type) {
/* Bolts treated together. */ /* Bolts treated together. */