diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-19 14:05:44 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-19 14:05:44 +0100 |
commit | 21e2dbe87e9d95ceac06e34ab5d80bbe6d6d7635 (patch) | |
tree | ee15ce26a61bacb41f685bdbe160f1879d996ee5 /src/ft_tex_weap_init.c | |
parent | Correct init and frees (diff) | |
download | 42-cub3d-21e2dbe87e9d95ceac06e34ab5d80bbe6d6d7635.tar.gz 42-cub3d-21e2dbe87e9d95ceac06e34ab5d80bbe6d6d7635.tar.bz2 42-cub3d-21e2dbe87e9d95ceac06e34ab5d80bbe6d6d7635.tar.xz 42-cub3d-21e2dbe87e9d95ceac06e34ab5d80bbe6d6d7635.tar.zst 42-cub3d-21e2dbe87e9d95ceac06e34ab5d80bbe6d6d7635.zip |
Okok
Diffstat (limited to 'src/ft_tex_weap_init.c')
-rw-r--r-- | src/ft_tex_weap_init.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/ft_tex_weap_init.c b/src/ft_tex_weap_init.c index b17255a..ac78de9 100644 --- a/src/ft_tex_weap_init.c +++ b/src/ft_tex_weap_init.c @@ -43,12 +43,4 @@ void FT_WEAPON_TWO_FIRE_PATH, &cl->tweap[3].img_w, &cl->tweap[3].img_h); cl->tweap[3].ptr = mlx_get_data_addr(cl->tweap[3].img, &cl->tweap[3].bpp, &cl->tweap[3].sizeline, &cl->tweap[3].endian); - if (cl->tweap[0].img) - mlx_destroy_image(cl->wlist.wlx, cl->tweap[0].img); - if (cl->tweap[1].img) - mlx_destroy_image(cl->wlist.wlx, cl->tweap[1].img); - if (cl->tweap[2].img) - mlx_destroy_image(cl->wlist.wlx, cl->tweap[2].img); - if (cl->tweap[3].img) - mlx_destroy_image(cl->wlist.wlx, cl->tweap[3].img); } |