diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-14 19:34:06 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-14 19:34:06 +0100 |
commit | ee13e877d77ba62b28b7af510c7cc729987044ce (patch) | |
tree | 0c857982c626c87a9142cdf6d74e731676318433 /src/ft_del_extra_sprites.c | |
parent | In progress (diff) | |
download | 42-cub3d-ee13e877d77ba62b28b7af510c7cc729987044ce.tar.gz 42-cub3d-ee13e877d77ba62b28b7af510c7cc729987044ce.tar.bz2 42-cub3d-ee13e877d77ba62b28b7af510c7cc729987044ce.tar.xz 42-cub3d-ee13e877d77ba62b28b7af510c7cc729987044ce.tar.zst 42-cub3d-ee13e877d77ba62b28b7af510c7cc729987044ce.zip |
Elementary school math into leaks fix
Diffstat (limited to '')
-rw-r--r-- | src/ft_del_extra_sprites.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_del_extra_sprites.c b/src/ft_del_extra_sprites.c index 21df608..91d09a2 100644 --- a/src/ft_del_extra_sprites.c +++ b/src/ft_del_extra_sprites.c @@ -24,8 +24,8 @@ void i = 1; while ((i + 2) <= cl->mlist.topsp) { - if (cl->tlist[i + 7].img) - mlx_destroy_image(cl->wlist.wlx, cl->tlist[i + 7].img); + if (cl->tlist[i + 9].img) + mlx_destroy_image(cl->wlist.wlx, cl->tlist[i + 9].img); i++; } } |