diff options
Diffstat (limited to 'src/ft_del_sprites_lists.c')
-rw-r--r-- | src/ft_del_sprites_lists.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/ft_del_sprites_lists.c b/src/ft_del_sprites_lists.c index bb382e6..6a1a662 100644 --- a/src/ft_del_sprites_lists.c +++ b/src/ft_del_sprites_lists.c @@ -17,20 +17,13 @@ void ft_del_sprites_lists(t_cub *clist) { - uint8_t i; + int8_t i; i = 0; - while (i < 8) + while (i < FT_TOTAL_SPRT) { ft_memdel((void*)&clist->sprites[i]); i++; } ft_memdel((void*)&clist->sprites); - i = 0; - while (i < 3) - { - ft_memdel((void*)&clist->weaps[i]); - i++; - } - ft_memdel((void*)&clist->weaps); } |