diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-16 17:40:24 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-16 17:40:24 +0100 |
commit | bc78305689d504fecab0999baea00a54ebcf54e5 (patch) | |
tree | f206dde0604622eb045fe21b4057a18f937f436c /src/ft_init_sprites.c | |
parent | Debug in progress (diff) | |
download | 42-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 '')
-rw-r--r-- | src/ft_init_sprites.c | 2 |
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); |