fix: readded matrix allcation (oopsy daisy)

This commit is contained in:
Theo Champion 2025-07-31 14:05:30 +02:00
parent 05e24d19f9
commit 02940e9ecf

View file

@ -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->bits_per_pixel, &data->img_data->line_length,
&data->img_data->endian); &data->img_data->endian);
init_player(&data->player, data->map); init_player(&data->player, data->map);
data->screen_matrix = ft_calloc(sizeof(int), WIDTH * HEIGHT);
} }