From b75da997d2d5b2f240d51273f25d0c7f96ff75db Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Wed, 29 Jan 2020 19:30:16 +0100 Subject: ok --- src/ft_get_map_redo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ft_get_map_redo.c') diff --git a/src/ft_get_map_redo.c b/src/ft_get_map_redo.c index 32cc178..a195227 100644 --- a/src/ft_get_map_redo.c +++ b/src/ft_get_map_redo.c @@ -70,8 +70,9 @@ ft_get_map_core(int fd, t_cub *clist) ret = 1; while (ret > 0) { + clist->line_chk += 1; ret = get_next_line(fd, &line); - if (ret < 0) + if (ret < 0 || !line[0] || ft_check_map_line(line, 0, clist) < 0) return (-1); if (ft_cat_mapl(line, i, clist) < 0) { -- cgit v1.2.3