aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_del_tex.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-22 19:05:12 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-22 19:05:12 +0100
commit7fbd59391bee9d23543ce933e91312e75276db8a (patch)
tree268db5130a3a62ce706cd8e222b6e47a61f2edb8 /src/ft_del_tex.c
parentnew colors for font (diff)
download42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.tar.gz
42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.tar.bz2
42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.tar.xz
42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.tar.zst
42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.zip
Now regimp and sound
Diffstat (limited to 'src/ft_del_tex.c')
-rw-r--r--src/ft_del_tex.c4
1 files changed, 3 insertions, 1 deletions
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