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);