aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_parse_map.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_parse_map.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c
index 48201fd..e54b53c 100644
--- a/src/ft_parse_map.c
+++ b/src/ft_parse_map.c
@@ -25,7 +25,7 @@ static void
size_t j;
i = 0;
- ml = clist->mlist;
+ ml = &clist->mlist;
while (ml->map[i])
i++;
j = 0;
@@ -51,7 +51,7 @@ static int8_t
char **words;
int ret;
- clist->mlist->line_chk += 1;
+ clist->mlist.line_chk += 1;
if ((ret = get_next_line(fd, &line)) < 0)
return (ft_map_error(FT_ERR_READ, clist));
if (ret == 0)
@@ -97,8 +97,8 @@ void
if (ft_get_map_core(fd, clist) < 0)
ft_map_error(clist->errmsg, clist);
ft_check_map_last_line(clist);
- ft_get_player_spawn(clist->plist, clist);
- ft_get_nlvl_pos(clist->mlist);
+ ft_get_player_spawn(&clist->plist, clist);
+ ft_get_nlvl_pos(&clist->mlist);
ft_check_missing(clist);
ft_set_minimap_scale(clist);
clist->currlvl += 1;