From fb0052c020a4308d4233ed0cf4769e6c2c3c1f5e Mon Sep 17 00:00:00 2001 From: jnmartin84 Date: Sun, 13 Apr 2025 08:35:22 -0400 Subject: [PATCH] clear weapon_target in ship_init (fixes #141) --- src/wipeout/ship.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wipeout/ship.c b/src/wipeout/ship.c index 8d6749a..ab82cb0 100644 --- a/src/wipeout/ship.c +++ b/src/wipeout/ship.c @@ -212,6 +212,7 @@ void ship_init(ship_t *self, section_t *section, int pilot, int inv_start_rank) self->ebolt_timer = 0; self->revcon_timer = 0; self->special_timer = 0; + self->weapon_target = NULL; self->mat = mat4_identity(); self->update_timer = 0;