diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-26 16:11:56 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-26 16:11:56 +0100 |
commit | 7f57c427d26d8b0c63feac5d0e7b8249707913eb (patch) | |
tree | c5bcb6957791278a2e66bfa994ba72eff6241811 /src/ft_del_tex.c | |
parent | Ok (diff) | |
download | 42-cub3d-7f57c427d26d8b0c63feac5d0e7b8249707913eb.tar.gz 42-cub3d-7f57c427d26d8b0c63feac5d0e7b8249707913eb.tar.bz2 42-cub3d-7f57c427d26d8b0c63feac5d0e7b8249707913eb.tar.xz 42-cub3d-7f57c427d26d8b0c63feac5d0e7b8249707913eb.tar.zst 42-cub3d-7f57c427d26d8b0c63feac5d0e7b8249707913eb.zip |
Stack overflow fix
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); |