diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-21 20:52:26 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-21 20:52:26 +0100 |
commit | 58b4de9b6a6fbd2356fa8ed81eae274330cc17ec (patch) | |
tree | 5d48970b3fa4eef273624f051d3d23f36e1e6641 /src/ft_exit.c | |
parent | Freed leaks (diff) | |
download | 42-cub3d-58b4de9b6a6fbd2356fa8ed81eae274330cc17ec.tar.gz 42-cub3d-58b4de9b6a6fbd2356fa8ed81eae274330cc17ec.tar.bz2 42-cub3d-58b4de9b6a6fbd2356fa8ed81eae274330cc17ec.tar.xz 42-cub3d-58b4de9b6a6fbd2356fa8ed81eae274330cc17ec.tar.zst 42-cub3d-58b4de9b6a6fbd2356fa8ed81eae274330cc17ec.zip |
Fix
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r-- | src/ft_exit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c index 477a0ec..e2a8676 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -39,7 +39,7 @@ static void i = 0; while (i < 2) { - if (clist->mlist.isweapon[i] && clist->tlist[i + 18].img) + if (clist->tlist[i + 18].img) mlx_destroy_image(clist->wlist.wlx, clist->tlist[i + 18].img); i++; } |