diff --git a/src/ppu.c b/src/ppu.c index 8aeca32..fc912f6 100644 --- a/src/ppu.c +++ b/src/ppu.c @@ -136,7 +136,7 @@ unsigned char read_status_ppu(ppu_t *ppu) { } unsigned char read_oamdata_ppu(ppu_t *ppu) { - unsigned char result = ppu->primary_oam[ppu->oamaddr]; + unsigned char result = read_primary_oam_ppu(ppu, ppu->oamaddr); if ((ppu->oamaddr % 4) == 2) { result &= 0xE3; }