aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_sprite_spawns.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_get_sprite_spawns.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ft_get_sprite_spawns.c b/src/ft_get_sprite_spawns.c
index 459b1c9..21c4cb8 100644
--- a/src/ft_get_sprite_spawns.c
+++ b/src/ft_get_sprite_spawns.c
@@ -103,10 +103,10 @@ void
uint8_t i;
x = 1;
- y = 1;
+ y = 0;
i = 0;
clist->mlist.sprite_nbr[0] = 0;
- while (clist->mlist.map[y])
+ while (clist->mlist.map[++y])
{
while (clist->mlist.map[y][x])
{
@@ -121,7 +121,6 @@ void
x++;
}
x = 1;
- y++;
}
ft_get_next_sprite(clist, 1, '3', 0);
}