fix pbm with get_next_line

This commit is contained in:
asus
2024-01-19 18:52:58 +01:00
parent 78d6e35c7f
commit 60b4a82489
10 changed files with 127 additions and 118 deletions

View File

@@ -102,7 +102,7 @@ int check_elements(t_game *game, char *file)
return (-1);
while (count < TOTAL_ELEMENTS)
{
get_next_line(fd, &line);
ft_gnl(fd, &line);
mb_add(line);
if (line && *line != '\n' && !check_element(game, line))
count++;