diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-02 19:44:47 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-02 19:44:47 +0100 |
commit | 888e9d30cbf4efde17ee337b9b97f1960bbd74a2 (patch) | |
tree | 68790739652458a8242074983d28c846ceb3cb77 /src/ft_exit.c | |
parent | Multilvl image leaks, rest is okok (diff) | |
download | 42-cub3d-888e9d30cbf4efde17ee337b9b97f1960bbd74a2.tar.gz 42-cub3d-888e9d30cbf4efde17ee337b9b97f1960bbd74a2.tar.bz2 42-cub3d-888e9d30cbf4efde17ee337b9b97f1960bbd74a2.tar.xz 42-cub3d-888e9d30cbf4efde17ee337b9b97f1960bbd74a2.tar.zst 42-cub3d-888e9d30cbf4efde17ee337b9b97f1960bbd74a2.zip |
Music is pretty bav
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r-- | src/ft_exit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c index a19bff3..c022627 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -63,7 +63,7 @@ int mlx_destroy_window(clist->wlist->wlx, clist->wlist->winptr); clist->wlist->winptr = NULL; } - if (clist->mlist->ismusic) + if (clist->isoldmus && clist->wlist->inited) { pthread_cancel(clist->tid); pthread_join(clist->tid, NULL); |