From f3ef7f448c8551df9c723d22d33a6fac0b966c22 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 30 Mar 2020 16:20:10 +0200 Subject: Fixed conditionnal jump btw --- src/ft_raycasting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ft_raycasting.c') diff --git a/src/ft_raycasting.c b/src/ft_raycasting.c index 67c3f4e..cc00963 100644 --- a/src/ft_raycasting.c +++ b/src/ft_raycasting.c @@ -31,7 +31,7 @@ static void !(rl->tex_x_tab = (int32_t*)malloc(x_s * sizeof(int32_t))) || !(rl->fc_tex_x_tab = (int32_t***)malloc(2 * sizeof(int32_t**))) || !(rl->fc_tex_y_tab = (int32_t***)malloc(2 * sizeof(int32_t**))) || - !(rl->row_dist_tab = (float*)malloc(y_s * sizeof(float)))) + !(rl->row_dist_tab = (float*)ft_calloc(y_s, sizeof(float)))) ft_alloc_error(cl); x = -1; while (++x < 2) -- cgit v1.2.3