diff --git a/src/ppu.rs b/src/ppu.rs index 17057e43f73475aa8e70a7bed5e491df2a63920d..5c71496b4186d3c5daefda16bb572f9f88503aa1 100644 --- a/src/ppu.rs +++ b/src/ppu.rs @@ -1260,7 +1260,7 @@ impl Ppu { // obtains the meta data of the object that is currently // under iteration to be checked for drawing - let obj = self.obj_data[index]; + let obj = &self.obj_data[index]; let obj_height = if self.obj_size { TILE_DOUBLE_HEIGHT