diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 18:09:55 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 18:09:55 +0100 |
commit | 273459283c98b5f10814fdf74c74c2e6a13f10c0 (patch) | |
tree | 6959619028e32cb5452e7ca6b65cccf5a7ca0072 /src/ft_sfx_death.c | |
parent | New sfx, clean exit (diff) | |
download | 42-cub3d-273459283c98b5f10814fdf74c74c2e6a13f10c0.tar.gz 42-cub3d-273459283c98b5f10814fdf74c74c2e6a13f10c0.tar.bz2 42-cub3d-273459283c98b5f10814fdf74c74c2e6a13f10c0.tar.xz 42-cub3d-273459283c98b5f10814fdf74c74c2e6a13f10c0.tar.zst 42-cub3d-273459283c98b5f10814fdf74c74c2e6a13f10c0.zip |
Not ideal
Diffstat (limited to 'src/ft_sfx_death.c')
-rw-r--r-- | src/ft_sfx_death.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_sfx_death.c b/src/ft_sfx_death.c index e093cf3..2566358 100644 --- a/src/ft_sfx_death.c +++ b/src/ft_sfx_death.c @@ -16,8 +16,8 @@ void ft_sfx_death(t_cub *cl) { - cl->death_pid = fork(); - if (cl->death_pid == 0) + cl->sfx.death_pid = fork(); + if (cl->sfx.death_pid == 0) { execve(*(cl->sfx.death + 0), cl->sfx.death, cl->envp); } |