aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_sprite_spawns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_get_sprite_spawns.c')
-rw-r--r--src/ft_get_sprite_spawns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_get_sprite_spawns.c b/src/ft_get_sprite_spawns.c
index f4d7e1e..e8eafa9 100644
--- a/src/ft_get_sprite_spawns.c
+++ b/src/ft_get_sprite_spawns.c
@@ -38,7 +38,7 @@ void
x = 0;
}
if (clist->sprites[s_n][(i - 1 < 0) ? (0) : (i - 1)].s_pos_x != 0
- && s_n + 1 < 7)
+ && s_n + 1 <= 7)
{
ft_get_next_sprite(clist, s_n + 1, c + 1, 0);
}