aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-27 16:44:30 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-27 16:44:30 +0100
commit44d5f7f4da8465f4829de1232e4cf2c6c2bf76bc (patch)
tree0926de3e4bebc9015b7806bcdeb99818d84af9ae /inc
parentProblem (diff)
download42-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 'inc')
-rw-r--r--inc/cub3d_structs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index ce45a92..b3cd636 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -206,7 +206,7 @@ typedef struct s_map
uint8_t sprite_var;
uint8_t weapon_var;
int32_t sprite_order[FT_TOTAL_SPRT][4096];
- int32_t st_o[FT_TOTAL_SPRT];
+ int32_t st_o[FT_TOTAL_SPRT + 1];
int32_t heals_nbr;
int32_t weaps_nbr[3];
int32_t heals_order[64];