fix bug in rom.writebyte

This commit is contained in:
zeromus 2017-01-16 20:59:14 +00:00
parent 152bffa627
commit 293fdbe333
1 changed files with 1 additions and 1 deletions

View File

@ -1313,6 +1313,6 @@ void FCEU_WriteRomByte(uint32 i, uint8 value) {
#endif
if (i < 16 + PRGsize[0])
PRGptr[0][i - 16] = value;
if (i < 16 + PRGsize[0] + CHRsize[0])
else if (i < 16 + PRGsize[0] + CHRsize[0])
CHRptr[0][i - 16 - PRGsize[0]] = value;
}