aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_warp_level.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_warp_level.c4
1 files changed, 4 insertions, 0 deletions
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);