diff options
Diffstat (limited to '')
-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); } |