Ensure that we don't copy twice

This commit is contained in:
Gwilym Kuiper 2022-01-23 19:39:08 +00:00
parent 0081d1c6ee
commit 1286a58511

View file

@ -170,6 +170,9 @@ impl<'a> VRamManager<'a> {
TILE_BACKGROUND.set(index_to_copy_into * tile_size_in_words + i, word); TILE_BACKGROUND.set(index_to_copy_into * tile_size_in_words + i, word);
} }
self.tile_set_to_vram
.insert((tile_set_ref.id, tile), index_to_copy_into as u16);
TileIndex(index_to_copy_into as u16) TileIndex(index_to_copy_into as u16)
} }