diff --git a/src/ppu.rs b/src/ppu.rs index 9c86e68f4ae42f41f66383da8273ed0ed13df6c0..766a8dac1cb6bf9603674486db0751aa1ad4c853 100644 --- a/src/ppu.rs +++ b/src/ppu.rs @@ -934,7 +934,7 @@ impl Ppu { if obj_index >= OBJ_COUNT { return; } - let mut obj = self.obj_data[obj_index].borrow_mut(); + let obj = self.obj_data[obj_index].borrow_mut(); match addr & 0x03 { 0x00 => obj.y = value as i16 - 16, 0x01 => obj.x = value as i16 - 8,