diff options
Diffstat (limited to 'src/ft_del_tex.c')
-rw-r--r-- | src/ft_del_tex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_del_tex.c b/src/ft_del_tex.c index 70f23fa..fc0cf99 100644 --- a/src/ft_del_tex.c +++ b/src/ft_del_tex.c @@ -86,7 +86,7 @@ static void void ft_del_tex(t_cub *cl) { - if (cl->wlist.inited) + if (cl->walltexgood == 1) { if (cl->tlist[0].img) mlx_destroy_image(cl->wlist.wlx, cl->tlist[0].img); |