aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_warp_level.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-20 16:51:31 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-20 16:51:31 +0100
commitd99126692d9eefd345b4756017f4b7fb9cd75ba7 (patch)
tree61f72fda5b99804dea1ef0ca0f7ddc6e4ec6200b /src/ft_warp_level.c
parentAdded number images (diff)
download42-cub3d-d99126692d9eefd345b4756017f4b7fb9cd75ba7.tar.gz
42-cub3d-d99126692d9eefd345b4756017f4b7fb9cd75ba7.tar.bz2
42-cub3d-d99126692d9eefd345b4756017f4b7fb9cd75ba7.tar.xz
42-cub3d-d99126692d9eefd345b4756017f4b7fb9cd75ba7.tar.zst
42-cub3d-d99126692d9eefd345b4756017f4b7fb9cd75ba7.zip
in progress
Diffstat (limited to 'src/ft_warp_level.c')
-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);