aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_check_map_line.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_check_map_line.c')
-rw-r--r--src/ft_check_map_line.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ft_check_map_line.c b/src/ft_check_map_line.c
index 1368b63..a53c9c8 100644
--- a/src/ft_check_map_line.c
+++ b/src/ft_check_map_line.c
@@ -46,8 +46,8 @@ int8_t
if (!ft_ischarset("012NSEW ", line[i]))
return (-1);
if (ft_ischarset("NSEW", line[i]))
- clist->isspawn += 1;
- if (clist->isspawn > 1)
+ clist->mlist->isspawn += 1;
+ if (clist->mlist->isspawn > 1)
return (-1);
}
else
@@ -58,7 +58,7 @@ int8_t
i++;
}
if (line[0] != '1' || line[i - 1] != '1'
- || ft_get_line_len(line) != clist->map_w)
+ || ft_get_line_len(line) != clist->mlist->map_w)
return (-1);
return (0);
}