diff options
Diffstat (limited to 'src/ft_get_nlvl_pos.c')
-rw-r--r-- | src/ft_get_nlvl_pos.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ft_get_nlvl_pos.c b/src/ft_get_nlvl_pos.c index d0bf3e7..db726e1 100644 --- a/src/ft_get_nlvl_pos.c +++ b/src/ft_get_nlvl_pos.c @@ -20,14 +20,14 @@ void x = 1; y = 1; - while (ml.map[y]) + while (ml->map[y]) { - while (ml.map[y][x]) + while (ml->map[y][x]) { - if (ml.map[y][x] == 'L') + if (ml->map[y][x] == 'L') { - ml.nlx = x; - ml.nly = y; + ml->nlx = x; + ml->nly = y; return ; } x++; |