From 141fb4d33f73cac99b1b19e475f83fb755f208a2 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Thu, 12 Mar 2020 18:56:59 +0100 Subject: good --- src/ft_init_map.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ft_init_map.c') diff --git a/src/ft_init_map.c b/src/ft_init_map.c index 1462ef3..8f6bb3d 100644 --- a/src/ft_init_map.c +++ b/src/ft_init_map.c @@ -83,6 +83,8 @@ int8_t mlist->scale = 0; mlist->nlx = 0; mlist->nly = 0; - ft_calloc_sprites(mlist); - return (0); + mlist->sprite_var = 0; + ft_bzero(mlist->sprite_order, 4096); + ft_bzero(mlist->traps_order, 512); + return (ft_calloc_sprites(mlist)); } -- cgit v1.2.3