diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_init_map.c | 6 |
1 files changed, 4 insertions, 2 deletions
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)); } |