From 02940e9ecf41e1acca8cc3c262b1c5f1d018d096 Mon Sep 17 00:00:00 2001 From: Theo Champion Date: Thu, 31 Jul 2025 14:05:30 +0200 Subject: [PATCH] fix: readded matrix allcation (oopsy daisy) --- src/utils/inits.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/inits.c b/src/utils/inits.c index 7603656..694e161 100644 --- a/src/utils/inits.c +++ b/src/utils/inits.c @@ -34,5 +34,5 @@ void init_cub3d_data(t_cub3d_data *data, char **argv) &data->img_data->bits_per_pixel, &data->img_data->line_length, &data->img_data->endian); init_player(&data->player, data->map); + data->screen_matrix = ft_calloc(sizeof(int), WIDTH * HEIGHT); } -