From 7fbd59391bee9d23543ce933e91312e75276db8a Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 22 Mar 2020 19:05:12 +0100 Subject: Now regimp and sound --- src/ft_init_weaps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ft_init_weaps.c') diff --git a/src/ft_init_weaps.c b/src/ft_init_weaps.c index 242b62d..f3f7452 100644 --- a/src/ft_init_weaps.c +++ b/src/ft_init_weaps.c @@ -21,10 +21,10 @@ int8_t { uint8_t i; - if (!(*weaps = (t_sprite**)ft_calloc(2, sizeof(t_sprite*)))) + if (!(*weaps = (t_sprite**)ft_calloc(3, sizeof(t_sprite*)))) return (-1); i = 0; - while (i < 2) + while (i < 3) { if (!(*((*weaps) + i) = (t_sprite*)ft_calloc(1, sizeof(t_sprite)))) return (-1); -- cgit v1.2.3