aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_exit.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-06 15:31:58 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-06 15:31:58 +0200
commit7359ab92230a7b4f05855de50f36aa4880901f3b (patch)
treec5de0e375f3f49d308950b24e199591dd8a2c1a8 /src/ft_exit.c
parentTweak (diff)
download42-cub3d-7359ab92230a7b4f05855de50f36aa4880901f3b.tar.gz
42-cub3d-7359ab92230a7b4f05855de50f36aa4880901f3b.tar.bz2
42-cub3d-7359ab92230a7b4f05855de50f36aa4880901f3b.tar.xz
42-cub3d-7359ab92230a7b4f05855de50f36aa4880901f3b.tar.zst
42-cub3d-7359ab92230a7b4f05855de50f36aa4880901f3b.zip
Better sound handling, few changes
Diffstat (limited to '')
-rw-r--r--src/ft_exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c
index 85c812f..6d93f8e 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -49,7 +49,7 @@ static void
pthread_join(clist->mtid, NULL);
}
i = -1;
- while (++i < 16)
+ while (++i < FT_TOTAL_SFX)
{
pthread_mutex_unlock(&clist->sfx[i].mutex);
pthread_cancel(clist->sfx[i].tid);