aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_del_sprites_lists.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-07 13:58:21 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-07 13:58:21 +0200
commit9ec1dcddc92571ba7b65710f49ffc0d018c6db71 (patch)
treec4d3358e45b2d621a5e1e942291e41d17af9509f /src/ft_del_sprites_lists.c
parentBetter sound handling, few changes (diff)
download42-cub3d-9ec1dcddc92571ba7b65710f49ffc0d018c6db71.tar.gz
42-cub3d-9ec1dcddc92571ba7b65710f49ffc0d018c6db71.tar.bz2
42-cub3d-9ec1dcddc92571ba7b65710f49ffc0d018c6db71.tar.xz
42-cub3d-9ec1dcddc92571ba7b65710f49ffc0d018c6db71.tar.zst
42-cub3d-9ec1dcddc92571ba7b65710f49ffc0d018c6db71.zip
Freed big leaks
Diffstat (limited to 'src/ft_del_sprites_lists.c')
-rw-r--r--src/ft_del_sprites_lists.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_del_sprites_lists.c b/src/ft_del_sprites_lists.c
index b7a854d..2b37c26 100644
--- a/src/ft_del_sprites_lists.c
+++ b/src/ft_del_sprites_lists.c
@@ -19,7 +19,8 @@ void
{
int8_t i;
- ft_memdel((void*)&clist->bad_boy);
+ if (clist->mlist.sprite_nbr[13] > 0)
+ ft_memdel((void*)&clist->bad_boy);
i = 0;
while (i < FT_TOTAL_SPRT)
{