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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ft_raycasting.c b/src/ft_raycasting.c
index f9a0e45..3bfd038 100644
--- a/src/ft_raycasting.c
+++ b/src/ft_raycasting.c
@@ -32,18 +32,18 @@ static void
!(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))))
- ft_error(FT_RET_ALLOC_ERR, FT_ERR_ALLOCATE, cl);
+ ft_alloc_error(cl);
x = -1;
while (++x < 2)
{
if (!(rl->fc_tex_x_tab[x] = (int**)malloc(y_s * sizeof(int*))) ||
!(rl->fc_tex_y_tab[x] = (int**)malloc(y_s * sizeof(int*))))
- ft_error(FT_RET_ALLOC_ERR, FT_ERR_ALLOCATE, cl);
+ ft_alloc_error(cl);
y = -1;
while (++y < y_s)
if (!(rl->fc_tex_x_tab[x][y] = (int*)malloc(x_s * sizeof(int))) ||
!(rl->fc_tex_y_tab[x][y] = (int*)malloc(x_s * sizeof(int))))
- ft_error(FT_RET_ALLOC_ERR, FT_ERR_ALLOCATE, cl);
+ ft_alloc_error(cl);
}
}