aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_map_redo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_get_map_redo.c')
-rw-r--r--src/ft_get_map_redo.c3
1 files changed, 2 insertions, 1 deletions
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)
{