mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-25 01:01:34 +11:00
Ensure that we don't copy twice
This commit is contained in:
parent
0081d1c6ee
commit
1286a58511
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue