From 5533c9c052e45e61731764addf93f816a573eea5 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Mon, 31 Jan 2022 20:00:20 +0000 Subject: [PATCH] Fix reuse issue --- agb/src/display/background.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agb/src/display/background.rs b/agb/src/display/background.rs index 5c6a4516..daa4f5be 100644 --- a/agb/src/display/background.rs +++ b/agb/src/display/background.rs @@ -218,6 +218,8 @@ impl<'a> VRamManager<'a> { self.references[index] = TileReference::Free(END_OF_FREE_LIST_MARKER); } + self.tile_set_to_vram.remove(&tile_ref); + self.vram_free_pointer = Some(index); }