diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-21 20:14:18 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-21 20:14:18 +0100 |
commit | 65313b6bc8aa66feeb5590a05e1b15099be1c7ff (patch) | |
tree | a3c65019c52fd3ed25e1f6ce5c966924c578bbf5 /src/ft_init_map.c | |
parent | Starting to valgrind (diff) | |
download | 42-cub3d-65313b6bc8aa66feeb5590a05e1b15099be1c7ff.tar.gz 42-cub3d-65313b6bc8aa66feeb5590a05e1b15099be1c7ff.tar.bz2 42-cub3d-65313b6bc8aa66feeb5590a05e1b15099be1c7ff.tar.xz 42-cub3d-65313b6bc8aa66feeb5590a05e1b15099be1c7ff.tar.zst 42-cub3d-65313b6bc8aa66feeb5590a05e1b15099be1c7ff.zip |
Freed leaks
Diffstat (limited to '')
-rw-r--r-- | src/ft_init_map.c | 5 |
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); } |