aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_sfx_new_level.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_sfx_new_level.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_sfx_new_level.c b/src/ft_sfx_new_level.c
index ec648e0..2cde15c 100644
--- a/src/ft_sfx_new_level.c
+++ b/src/ft_sfx_new_level.c
@@ -28,7 +28,8 @@ void
while (1)
{
pthread_mutex_lock(&sfx->new_lvl_mutex);
- system(sfx->new_lvl);
+ if (system(sfx->new_lvl))
+ pthread_exit(NULL);
}
return (NULL);
}