diff options
Diffstat (limited to '')
-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 423350d..493e00f 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -53,7 +53,7 @@ int mlx_destroy_image(clist->wlist->wlx, clist->tlist[3].img); if (clist->tlist[4].img) mlx_destroy_image(clist->wlist->wlx, clist->tlist[4].img); - if (clist->mlist->isnlvl && clist->tlist[5].img) + if (clist->tlist[5].img && clist->mlist->isnlvl) mlx_destroy_image(clist->wlist->wlx, clist->tlist[5].img); } if (clist->wlist->inited) |