aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_parse_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_parse_map.c')
-rw-r--r--src/ft_parse_map.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c
index 52c6316..0be76bc 100644
--- a/src/ft_parse_map.c
+++ b/src/ft_parse_map.c
@@ -91,7 +91,9 @@ ft_parse_map(const char *map_path, t_cub *clist)
ret = 1;
while (ret != 12)
ret = ft_parse_it(fd, clist);
- ft_get_map(fd, clist);
+ ft_check_missing(clist);
+ if (ft_get_map(fd, clist) < 0)
+ ft_map_error(clist);
/* if (ft_get_tex(fd, clist) < 0) */
/* return ; */
/* ft_check_empty_line(fd, 6, clist); */