aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_sprite.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_get_sprite.c')
-rw-r--r--src/ft_get_sprite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_get_sprite.c b/src/ft_get_sprite.c
index 05b13b2..9e84e93 100644
--- a/src/ft_get_sprite.c
+++ b/src/ft_get_sprite.c
@@ -46,6 +46,8 @@ static int8_t
return (-1);
i++;
}
+ if (i + 2 > clist->mlist.topsp)
+ clist->mlist.topsp = i + 2;
return (0);
}