From 7fbd59391bee9d23543ce933e91312e75276db8a Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 22 Mar 2020 19:05:12 +0100 Subject: Now regimp and sound --- src/ft_del_tex.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ft_del_tex.c') diff --git a/src/ft_del_tex.c b/src/ft_del_tex.c index 839387a..55eff72 100644 --- a/src/ft_del_tex.c +++ b/src/ft_del_tex.c @@ -48,7 +48,7 @@ static void int8_t i; i = 0; - while (i < 4) + while (i < 6) { if (cl->tweap[i].img) mlx_destroy_image(cl->wlist.wlx, cl->tweap[i].img); @@ -75,6 +75,8 @@ static void mlx_destroy_image(cl->wlist.wlx, cl->tlist[18].img); if (cl->tlist[19].img) mlx_destroy_image(cl->wlist.wlx, cl->tlist[19].img); + if (cl->tlist[20].img) + mlx_destroy_image(cl->wlist.wlx, cl->tlist[20].img); } void -- cgit v1.2.3