fix bug in rom.writebyte
This commit is contained in:
parent
152bffa627
commit
293fdbe333
|
@ -1313,6 +1313,6 @@ void FCEU_WriteRomByte(uint32 i, uint8 value) {
|
||||||
#endif
|
#endif
|
||||||
if (i < 16 + PRGsize[0])
|
if (i < 16 + PRGsize[0])
|
||||||
PRGptr[0][i - 16] = value;
|
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;
|
CHRptr[0][i - 16 - PRGsize[0]] = value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue