mirror of
https://github.com/SourMesen/Mesen.git
synced 2025-04-02 10:52:48 -04:00
PPU: Fixed out-of-bounds array write
This commit is contained in:
parent
86df4314b4
commit
b700f94b4e
1 changed files with 2 additions and 2 deletions
|
@ -744,9 +744,9 @@ void PPU::ProcessVisibleScanline()
|
|||
void PPU::CopyOAMData()
|
||||
{
|
||||
if(_cycle < 65) {
|
||||
//Clear secondary OAM at between cycle 0 and 64
|
||||
//Clear secondary OAM at between cycle 1 and 64
|
||||
_oamCopybuffer = 0xFF;
|
||||
_secondarySpriteRAM[_cycle >> 1] = _oamCopybuffer;
|
||||
_secondarySpriteRAM[(_cycle - 1) >> 1] = 0xFF;
|
||||
} else {
|
||||
if(_cycle == 65) {
|
||||
_sprite0Added = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue