From d99126692d9eefd345b4756017f4b7fb9cd75ba7 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 20 Mar 2020 16:51:31 +0100 Subject: in progress --- src/ft_warp_level.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ft_warp_level.c') diff --git a/src/ft_warp_level.c b/src/ft_warp_level.c index ca7801b..107e709 100644 --- a/src/ft_warp_level.c +++ b/src/ft_warp_level.c @@ -98,6 +98,10 @@ static void mlx_destroy_image(cl->wlist.wlx, cl->tweap[3].img); ft_del_extra_sprites(cl); i = -1; + while (++i < 11) + if (cl->tnum[i].img) + mlx_destroy_image(cl->wlist.wlx, cl->tnum[i].img); + i = -1; while (++i < 8) ft_memdel((void*)&cl->sprites[i]); ft_memdel((void*)&cl->sprites); -- cgit v1.2.3