diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_check_map_line.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |