diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-01-29 19:30:16 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-01-29 19:30:16 +0100 |
commit | b75da997d2d5b2f240d51273f25d0c7f96ff75db (patch) | |
tree | fae916a653bb443af88c829d0639a6a51c51ae7d | |
parent | Missing error management but ok (diff) | |
download | 42-cub3d-b75da997d2d5b2f240d51273f25d0c7f96ff75db.tar.gz 42-cub3d-b75da997d2d5b2f240d51273f25d0c7f96ff75db.tar.bz2 42-cub3d-b75da997d2d5b2f240d51273f25d0c7f96ff75db.tar.xz 42-cub3d-b75da997d2d5b2f240d51273f25d0c7f96ff75db.tar.zst 42-cub3d-b75da997d2d5b2f240d51273f25d0c7f96ff75db.zip |
ok
-rw-r--r-- | src/ft_get_map_redo.c | 3 |
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) { |