Update sprite_eng.c
small fix in SPR_end() so first and last sprite pointer are cleared as well.
@@ -157,9 +157,13 @@ void SPR_end()
{
if (SPR_isInitialized())
{
+ // no active sprites
+ firstSprite = NULL;
+ lastSprite = NULL;
+
// reset and clear VDP sprite
VDP_resetSprites();
- VDP_updateSprites(1, DMA_QUEUE_COPY);
+ VDP_updateSprites(1, DMA_QUEUE);
// release memory
POOL_destroy(spritesPool);
