From 21e2dbe87e9d95ceac06e34ab5d80bbe6d6d7635 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 19 Mar 2020 14:05:44 +0100 Subject: Okok --- src/ft_exit.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ft_exit.c') diff --git a/src/ft_exit.c b/src/ft_exit.c index f0a25e0..1f47f02 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -92,6 +92,14 @@ static void mlx_destroy_image(clist->wlist.wlx, clist->tlist[18].img); if (clist->mlist.isweapon[1] && clist->tlist[19].img) mlx_destroy_image(clist->wlist.wlx, clist->tlist[19].img); + if (cl->tweap[0].img) + mlx_destroy_image(cl->wlist.wlx, cl->tweap[0].img); + if (cl->tweap[1].img) + mlx_destroy_image(cl->wlist.wlx, cl->tweap[1].img); + if (cl->tweap[2].img) + mlx_destroy_image(cl->wlist.wlx, cl->tweap[2].img); + if (cl->tweap[3].img) + mlx_destroy_image(cl->wlist.wlx, cl->tweap[3].img); ft_del_extra_sprites(clist); } -- cgit v1.2.3