From 44d5f7f4da8465f4829de1232e4cf2c6c2bf76bc Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 27 Mar 2020 16:44:30 +0100 Subject: Segv fix --- inc/cub3d_structs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc') 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]; -- cgit v1.2.3