fix: check if all header value is define

This commit is contained in:
Camille Chauvet 2023-05-05 16:33:45 +00:00
parent d22ab7e610
commit f56ec19ebc

View File

@ -90,5 +90,5 @@ int header_is_valid(char ***header, t_map *map)
return (0); return (0);
i++; i++;
} }
return (1); return (!map->img_path[0] || !map->img_path[1] || !map->img_path[2]|| !map->img_path[3] || map->color_top == -1 || map->color_bot == -1);t
} }