This, apparently, makes all valgrind errors go away
This commit is contained in:
parent
6322d7675d
commit
1f6c84c17a
@ -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"
|
||||||
|
@ -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. */
|
||||||
|
Loading…
Reference in New Issue
Block a user