From a8f215adbc079c97589dd3412426f29224f73bd3 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Wed, 29 Jan 2020 19:52:32 +0100 Subject: Perfect --- src/ft_check_map_line.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ft_check_map_line.c') diff --git a/src/ft_check_map_line.c b/src/ft_check_map_line.c index 1c8c6c6..0d164cd 100644 --- a/src/ft_check_map_line.c +++ b/src/ft_check_map_line.c @@ -43,7 +43,8 @@ ft_check_map_line(char *line, uint8_t l, t_cub *clist) } i++; } - if (line[0] != '1' || line[i - 1] != '1') + if (line[0] != '1' || line[i - 1] != '1' + || ft_get_line_len(line) != clist->map_w) return (-1); return (0); } -- cgit v1.2.3