From 99d0d5e9aefde374514e44fb76ee890f068e0af2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com>
Date: Sun, 30 Apr 2023 12:35:25 +0100
Subject: [PATCH] fix: small fix

---
 src/ppu.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ppu.rs b/src/ppu.rs
index 9c86e68f..766a8dac 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,
-- 
GitLab