aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_sfx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_init_sfx.c')
-rw-r--r--src/ft_init_sfx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ft_init_sfx.c b/src/ft_init_sfx.c
index 728e410..9049250 100644
--- a/src/ft_init_sfx.c
+++ b/src/ft_init_sfx.c
@@ -41,6 +41,10 @@ static int8_t
int8_t
ft_init_sfx(t_sfx *sfx)
{
+ sfx->death_pid = 0;
+ sfx->new_lvl_pid = 0;
+ sfx->pain_pid = 0;
+ sfx->trap_pid = 0;
if (ft_split_sfx(&sfx->death, FT_SFX_DEATH_PATH) < 0 ||
ft_split_sfx(&sfx->new_lvl, FT_SFX_N_LVL_PATH) < 0 ||
ft_split_sfx(&sfx->pain_one, FT_SFX_SCR_ONE_PATH) < 0 ||