diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-18 21:35:54 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-18 21:35:54 +0100 |
commit | d114d2571a3808eba1f0a5038ad862b790a96074 (patch) | |
tree | 8d2d4c19a2a8de61a253dc0a4fc2434a770470a6 /src/ft_exit.c | |
parent | Merge branch 'better_sprites' (diff) | |
download | 42-cub3d-d114d2571a3808eba1f0a5038ad862b790a96074.tar.gz 42-cub3d-d114d2571a3808eba1f0a5038ad862b790a96074.tar.bz2 42-cub3d-d114d2571a3808eba1f0a5038ad862b790a96074.tar.xz 42-cub3d-d114d2571a3808eba1f0a5038ad862b790a96074.tar.zst 42-cub3d-d114d2571a3808eba1f0a5038ad862b790a96074.zip |
In progress
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r-- | src/ft_exit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c index 78b6d0a..390f234 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -86,6 +86,8 @@ static void mlx_destroy_image(clist->wlist.wlx, clist->tlist[15].img); if (clist->tlist[16].img) mlx_destroy_image(clist->wlist.wlx, clist->tlist[16].img); + if (clist->mlist.isheals && clist->tlist[17].img) + mlx_destroy_image(clist->wlist.wlx, clist->tlist[17].img); ft_del_extra_sprites(clist); } |