diff --git a/agb/src/display/object.rs b/agb/src/display/object.rs index 7398cf59..b0ffb3ec 100644 --- a/agb/src/display/object.rs +++ b/agb/src/display/object.rs @@ -157,6 +157,7 @@ impl Tag { &self.get_sprites()[idx] } + #[inline] pub fn get_animation_sprite(&self, idx: usize) -> &'static Sprite { let len_sub_1 = self.len - 1; match self.direction {