From 8fcb9e607da50b3ff076776f78a21eb6498ef3d3 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sun, 23 Jan 2022 19:21:42 +0000 Subject: [PATCH] Special case the first element in references --- agb/src/display/background.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agb/src/display/background.rs b/agb/src/display/background.rs index ad795587..287733d4 100644 --- a/agb/src/display/background.rs +++ b/agb/src/display/background.rs @@ -1,3 +1,4 @@ +use alloc::vec; use alloc::vec::Vec; use hashbrown::HashMap; @@ -77,7 +78,7 @@ impl<'a> VRamManager<'a> { free_pointer: None, tile_set_to_vram: HashMap::new(), - references: Vec::new(), + references: vec![1], vram_free_pointer: None, } }