aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_raycasting.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_raycasting.c')
-rw-r--r--src/ft_raycasting.c2
1 files changed, 1 insertions, 1 deletions
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)