aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_init_map.c')
-rw-r--r--src/ft_init_map.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ft_init_map.c b/src/ft_init_map.c
index 717506c..a2a9ce1 100644
--- a/src/ft_init_map.c
+++ b/src/ft_init_map.c
@@ -68,8 +68,9 @@ int8_t
ft_bzero(mlist->sprite_order, 4096);
ft_bzero(mlist->traps_order, 512);
ft_bzero(mlist->heals_order, 64);
- ft_bzero(mlist->weaps_nbr, 2);
- ft_bzero(mlist->weaps_order, 2);
+ mlist->weaps_nbr[0] = 0;
+ mlist->weaps_nbr[1] = 0;
+ ft_bzero(mlist->weaps_order, 1);
return (0);
}