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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_init_map.c b/src/ft_init_map.c
index 717506c..9ddbb47 100644
--- a/src/ft_init_map.c
+++ b/src/ft_init_map.c
@@ -68,8 +68,10 @@ 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;
+ mlist->weaps_nbr[2] = 0;
+ ft_bzero(mlist->weaps_order, 1);
return (0);
}
@@ -96,8 +98,6 @@ int8_t
mlist->isskybox = 0;
mlist->istraps = 0;
mlist->isheals = 0;
- mlist->isweapon[0] = 0;
- mlist->isweapon[1] = 0;
mlist->traps_nbr = 0;
mlist->heals_nbr = 0;
return (ft_init_map_norme(mlist));