aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_map_redo.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_get_map_redo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_get_map_redo.c b/src/ft_get_map_redo.c
index a621282..be6f987 100644
--- a/src/ft_get_map_redo.c
+++ b/src/ft_get_map_redo.c
@@ -43,12 +43,12 @@ ft_get_map_first_line(char *line, t_cub *clist)
ft_memdel(line);
return (-1);
}
+ clist->map_w = ft_get_line_len(line);
if (ft_check_map_line(line, 1, clist) < 0)
{
ft_memdel(line);
return (-1);
}
- clist->map_w = ft_get_line_len(line);
clist->mapl = NULL;
if (ft_cat_mapl(line, 0, clist) < 0)
{