diff options
Diffstat (limited to 'src/ft_init_sprites.c')
-rw-r--r-- | src/ft_init_sprites.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ft_init_sprites.c b/src/ft_init_sprites.c index ee9506f..020f169 100644 --- a/src/ft_init_sprites.c +++ b/src/ft_init_sprites.c @@ -32,6 +32,10 @@ ** 10: weapon one - tlist[18] - 4 ** 11: weapon two - tlist[19] - 4 ** 12: weapon three - tlist[20] - 4 +** 13: enemy - tlist[23] | +** '- - - - - - - tlist[24] | +** '- - - - - - - tlist[25] | +** '- - - - - - - tlist[26] - 32 */ int8_t @@ -57,5 +61,7 @@ int8_t if (!(*((*sprites) + i) = (t_sprite*)ft_calloc(4, sizeof(t_sprite)))) return (-1); } + if (!(*((*sprites) + 13) = (t_sprite*)ft_calloc(32, sizeof(t_sprite)))) + return (-1); return (0); } |