Valid map fix

This commit is contained in:
2025-12-10 12:26:09 +01:00
parent 00c5cd13bf
commit 3027b08300
2 changed files with 6 additions and 6 deletions

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/12/05 16:30:33 by aortigos #+# #+# */
/* Updated: 2025/12/09 19:49:06 by aortigos ### ########.fr */
/* Updated: 2025/12/10 12:25:34 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -23,7 +23,7 @@ int h_map(char **map)
j = 0;
while (map[i][j])
{
if (map[i][j] != '1' || map [i][j] != ' ')
if (map[i][j] != '1' && map [i][j] != ' ')
if (map[i][j - 1] == ' ' || map[i][j + 1] == ' ')
return (ft_putstr_fd(ERR_MAP_INV, 2), 0);
j++;