diff --git a/map/parsing_header2.c b/map/parsing_header2.c index e543a17..7e6ae37 100644 --- a/map/parsing_header2.c +++ b/map/parsing_header2.c @@ -2,7 +2,7 @@ static int set_texture(t_map *map, int token, const char *key, char *value) { - if (map->img[token - 1] != NULL) + if (map->img_path[token - 1] != NULL) { ft_eprintf("redefinition of %s", key); return (1);