aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_exit.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 22:40:47 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 22:40:47 +0100
commit3520f4bf3d435991f402e46731c15838baae0894 (patch)
treec8cbf06ebd69a422cbcf2cb8381916af172da726 /src/ft_exit.c
parentStill sfx to do (diff)
parentBug fix (diff)
download42-cub3d-3520f4bf3d435991f402e46731c15838baae0894.tar.gz
42-cub3d-3520f4bf3d435991f402e46731c15838baae0894.tar.bz2
42-cub3d-3520f4bf3d435991f402e46731c15838baae0894.tar.xz
42-cub3d-3520f4bf3d435991f402e46731c15838baae0894.tar.zst
42-cub3d-3520f4bf3d435991f402e46731c15838baae0894.zip
Merge branch 'master' into weaps
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r--src/ft_exit.c2
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);
}