diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-25 19:27:47 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-25 19:27:47 +0100 |
commit | 94c06bc705b8598eb9ce30514f14f583f2538de8 (patch) | |
tree | 44175b996a6a219bc7c23b3eb4656b13ad039cd5 /src/ft_draw_sprite.c | |
parent | Fixed sprite parse (diff) | |
download | 42-cub3d-94c06bc705b8598eb9ce30514f14f583f2538de8.tar.gz 42-cub3d-94c06bc705b8598eb9ce30514f14f583f2538de8.tar.bz2 42-cub3d-94c06bc705b8598eb9ce30514f14f583f2538de8.tar.xz 42-cub3d-94c06bc705b8598eb9ce30514f14f583f2538de8.tar.zst 42-cub3d-94c06bc705b8598eb9ce30514f14f583f2538de8.zip |
Solved segfault, fuck stack
Diffstat (limited to 'src/ft_draw_sprite.c')
-rw-r--r-- | src/ft_draw_sprite.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_draw_sprite.c b/src/ft_draw_sprite.c index 5c0fe41..7f4e913 100644 --- a/src/ft_draw_sprite.c +++ b/src/ft_draw_sprite.c @@ -39,8 +39,9 @@ static void void ft_sort_sprites(t_cub *cl, int16_t it, int16_t jt) { - float dist_tab[8][4096]; + float **dist_tab; + ft_alloc_dist_tab(&dist_tab, cl); while (++jt < cl->mlist.sprite_var) { while (++it < cl->mlist.sprite_nbr[jt]) |