nes: fix r2299

This commit is contained in:
goyuken 2014-01-17 22:02:07 +00:00
parent c08183f082
commit c8459c1296
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public virtual void WriteWRAM(int addr, byte value) public virtual void WriteWRAM(int addr, byte value)
{ {
if(wram != null) if(wram != null)
wram[addr] = value; wram[addr & wram_mask] = value;
} }
private int wram_mask; private int wram_mask;