fixed inifinite loop when bliting sprites

This commit is contained in:
Andre Leiradella 2015-08-23 22:18:57 -03:00
parent f253a1c11e
commit 847584bf62

View File

@ -148,6 +148,7 @@ void rl_sprites_blit_nobg( void )
{
sptptr->item->next = free_list;
free_list = sptptr->item;
sptptr++;
}
while ( sptptr < endptr );
}
@ -216,9 +217,9 @@ void rl_sprites_blit( void )
{
do
{
item_t* item = (item_t*)sptptr->item;
item->next = free_list;
free_list = item;
sptptr->item->next = free_list;
free_list = sptptr->item;
sptptr++;
}
while ( sptptr < endptr );
}