aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_raycasting.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-30 16:20:10 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-30 16:20:10 +0200
commitf3ef7f448c8551df9c723d22d33a6fac0b966c22 (patch)
tree982d3e931f77d30a2cc7c2d28ea6129c5f7467ca /src/ft_raycasting.c
parentLess fat sprites (diff)
download42-cub3d-f3ef7f448c8551df9c723d22d33a6fac0b966c22.tar.gz
42-cub3d-f3ef7f448c8551df9c723d22d33a6fac0b966c22.tar.bz2
42-cub3d-f3ef7f448c8551df9c723d22d33a6fac0b966c22.tar.xz
42-cub3d-f3ef7f448c8551df9c723d22d33a6fac0b966c22.tar.zst
42-cub3d-f3ef7f448c8551df9c723d22d33a6fac0b966c22.zip
Fixed conditionnal jump btw
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)