diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-15 19:42:48 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-15 19:42:48 +0100 |
commit | 75f54cd49e5b9942678d2b8a8137ca1110a785f5 (patch) | |
tree | 9abbe2b12a0d1cc016bc3bfa5ce95f15d6cd625d /src/ft_init_sfx.c | |
parent | Revert (diff) | |
download | 42-cub3d-75f54cd49e5b9942678d2b8a8137ca1110a785f5.tar.gz 42-cub3d-75f54cd49e5b9942678d2b8a8137ca1110a785f5.tar.bz2 42-cub3d-75f54cd49e5b9942678d2b8a8137ca1110a785f5.tar.xz 42-cub3d-75f54cd49e5b9942678d2b8a8137ca1110a785f5.tar.zst 42-cub3d-75f54cd49e5b9942678d2b8a8137ca1110a785f5.zip |
Valgrind errors fix
Diffstat (limited to '')
-rw-r--r-- | src/ft_init_sfx.c | 4 |
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 || |