fix: header error
This commit is contained in:
parent
3bf2ab4318
commit
4c31d80a72
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user