diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-22 19:05:12 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-22 19:05:12 +0100 |
commit | 7fbd59391bee9d23543ce933e91312e75276db8a (patch) | |
tree | 268db5130a3a62ce706cd8e222b6e47a61f2edb8 /src/ft_init_weaps.c | |
parent | new colors for font (diff) | |
download | 42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.tar.gz 42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.tar.bz2 42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.tar.xz 42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.tar.zst 42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.zip |
Now regimp and sound
Diffstat (limited to 'src/ft_init_weaps.c')
-rw-r--r-- | src/ft_init_weaps.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |