From 4c31d80a727e1569fb1d87b1e741bfcd166cf33e Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Tue, 16 May 2023 11:05:02 +0000 Subject: [PATCH] fix: header error --- map/map.h | 2 +- map/parsing.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/map/map.h b/map/map.h index 620fc32..f826c29 100644 --- a/map/map.h +++ b/map/map.h @@ -7,7 +7,7 @@ typedef struct s_map { char **map; - void *img_path[4]; + char *img_path[4]; long long color_bot; long long color_top; int size_x; diff --git a/map/parsing.c b/map/parsing.c index 7784bb0..17f9f47 100644 --- a/map/parsing.c +++ b/map/parsing.c @@ -85,7 +85,7 @@ int map_parsing(const char *path, t_map *map) return (1); } header = get_header((const char **) file_content, &header_size); - if (header_is_valid(header, map) == 0) + if (header_is_valid(header, map) == 1) { header_freer(header); ft_freer_tab_ultimate(1, file_content);