aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_sprites.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-16 17:40:24 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-16 17:40:24 +0100
commitbc78305689d504fecab0999baea00a54ebcf54e5 (patch)
treef206dde0604622eb045fe21b4057a18f937f436c /src/ft_init_sprites.c
parentDebug in progress (diff)
download42-cub3d-bc78305689d504fecab0999baea00a54ebcf54e5.tar.gz
42-cub3d-bc78305689d504fecab0999baea00a54ebcf54e5.tar.bz2
42-cub3d-bc78305689d504fecab0999baea00a54ebcf54e5.tar.xz
42-cub3d-bc78305689d504fecab0999baea00a54ebcf54e5.tar.zst
42-cub3d-bc78305689d504fecab0999baea00a54ebcf54e5.zip
3,000,000 bytes leaked xd fuck heap
Diffstat (limited to 'src/ft_init_sprites.c')
-rw-r--r--src/ft_init_sprites.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_init_sprites.c b/src/ft_init_sprites.c
index 4fa21bf..f39a692 100644
--- a/src/ft_init_sprites.c
+++ b/src/ft_init_sprites.c
@@ -25,7 +25,7 @@ t_sprite
if (!(sprites = (t_sprite**)ft_calloc(8, sizeof(t_sprite*))))
return (NULL);
i = 0;
- while (i < 9)
+ while (i < 8)
{
if (!(sprites[i] = (t_sprite*)ft_calloc(4096, sizeof(t_sprite))))
return (NULL);