diff --git a/agb/src/display/tiled/infinite_scrolled_map.rs b/agb/src/display/tiled/infinite_scrolled_map.rs index e936808e..9ae33212 100644 --- a/agb/src/display/tiled/infinite_scrolled_map.rs +++ b/agb/src/display/tiled/infinite_scrolled_map.rs @@ -430,6 +430,11 @@ impl<'a> InfiniteScrolledMap<'a> { pub const fn background(&self) -> BackgroundID { self.map.background() } + + #[must_use] + pub fn into_inner(self) -> MapLoan<'a, RegularMap> { + self.map + } } fn div_floor(x: i32, y: i32) -> i32 {