diff options
-rw-r--r-- | src/ft_init_lists.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c index cd928b0..3e4dc96 100644 --- a/src/ft_init_lists.c +++ b/src/ft_init_lists.c @@ -91,9 +91,16 @@ static int8_t int8_t ft_init_cub3d(t_cub *clist) { + uint8_t i; if (ft_init_cub(clist) < 0) return (-1); if (ft_init_win(&clist->wlist) < 0) return (-1); + i = 0; + while (i < 9) + { + ft_bzero(clist->sprites[i], 4096); + i++; + } return (0); } |