aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_sprite.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_draw_sprite.c')
-rw-r--r--src/ft_draw_sprite.c3
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])