Fix reuse issue

This commit is contained in:
Gwilym Kuiper 2022-01-31 20:00:20 +00:00
parent a2c6c6a70c
commit 5533c9c052

View file

@ -218,6 +218,8 @@ impl<'a> VRamManager<'a> {
self.references[index] = TileReference::Free(END_OF_FREE_LIST_MARKER); self.references[index] = TileReference::Free(END_OF_FREE_LIST_MARKER);
} }
self.tile_set_to_vram.remove(&tile_ref);
self.vram_free_pointer = Some(index); self.vram_free_pointer = Some(index);
} }