fix: header error

This commit is contained in:
Camille Chauvet 2023-05-16 11:05:02 +00:00
parent 3bf2ab4318
commit 4c31d80a72
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
typedef struct s_map typedef struct s_map
{ {
char **map; char **map;
void *img_path[4]; char *img_path[4];
long long color_bot; long long color_bot;
long long color_top; long long color_top;
int size_x; int size_x;

View File

@ -85,7 +85,7 @@ int map_parsing(const char *path, t_map *map)
return (1); return (1);
} }
header = get_header((const char **) file_content, &header_size); 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); header_freer(header);
ft_freer_tab_ultimate(1, file_content); ft_freer_tab_ultimate(1, file_content);