diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-27 16:44:30 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-27 16:44:30 +0100 |
commit | 44d5f7f4da8465f4829de1232e4cf2c6c2bf76bc (patch) | |
tree | 0926de3e4bebc9015b7806bcdeb99818d84af9ae /src/ft_init_map.c | |
parent | Problem (diff) | |
download | 42-cub3d-44d5f7f4da8465f4829de1232e4cf2c6c2bf76bc.tar.gz 42-cub3d-44d5f7f4da8465f4829de1232e4cf2c6c2bf76bc.tar.bz2 42-cub3d-44d5f7f4da8465f4829de1232e4cf2c6c2bf76bc.tar.xz 42-cub3d-44d5f7f4da8465f4829de1232e4cf2c6c2bf76bc.tar.zst 42-cub3d-44d5f7f4da8465f4829de1232e4cf2c6c2bf76bc.zip |
Segv fix
Diffstat (limited to 'src/ft_init_map.c')
-rw-r--r-- | src/ft_init_map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_init_map.c b/src/ft_init_map.c index 72a02fd..1859afe 100644 --- a/src/ft_init_map.c +++ b/src/ft_init_map.c @@ -70,7 +70,7 @@ int8_t i = -1; while (++i < FT_TOTAL_SPRT) ft_bzero(mlist->sprite_order[i], 4096); - ft_bzero(mlist->st_o, FT_TOTAL_SPRT); + ft_bzero(mlist->st_o, FT_TOTAL_SPRT + 1); ft_bzero(mlist->heals_order, 64); mlist->weaps_nbr[0] = 0; mlist->weaps_nbr[1] = 0; |