aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_weaps.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_init_weaps.c4
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);