aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_sprites.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_init_sprites.c')
-rw-r--r--src/ft_init_sprites.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ft_init_sprites.c b/src/ft_init_sprites.c
index 1a23c26..ee9506f 100644
--- a/src/ft_init_sprites.c
+++ b/src/ft_init_sprites.c
@@ -49,5 +49,13 @@ int8_t
}
if (!(*((*sprites) + 8) = (t_sprite*)ft_calloc(512, sizeof(t_sprite))))
return (-1);
+ if (!(*((*sprites) + 9) = (t_sprite*)ft_calloc(64, sizeof(t_sprite))))
+ return (-1);
+ i = 9;
+ while (++i < 13)
+ {
+ if (!(*((*sprites) + i) = (t_sprite*)ft_calloc(4, sizeof(t_sprite))))
+ return (-1);
+ }
return (0);
}