diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_get_player_spawn.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_get_player_spawn.c b/src/ft_get_player_spawn.c index cc41955..b803f25 100644 --- a/src/ft_get_player_spawn.c +++ b/src/ft_get_player_spawn.c @@ -37,15 +37,15 @@ void x = 1; y = 1; - while (clist->map[y]) + while (clist->mlist->map[y]) { - while (clist->map[y][x]) + while (clist->mlist->map[y][x]) { - if (ft_ischarset("NSEW", clist->map[y][x])) + if (ft_ischarset("NSEW", clist->mlist->map[y][x])) { plist->pos_x = x; plist->pos_y = y; - plist->view_side = ft_get_view_side(clist->map[y][x]); + plist->view_side = ft_get_view_side(clist->mlist->map[y][x]); return ; } x++; |