From ccf2c61a23509e0bd7197a19f45ac56757a7e2de Mon Sep 17 00:00:00 2001 From: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> Date: Sat, 20 May 2023 03:11:40 -0700 Subject: [PATCH] fix #3664 --- .../Consoles/Nintendo/NES/Boards/Mapper069.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Mapper069.cs b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Mapper069.cs index ad45e98e6d..63201010ef 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Mapper069.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Mapper069.cs @@ -270,7 +270,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES addr = CalcWRAMAddress(addr, prg_bank_mask_8k); return Rom[addr]; } - else if (!wram_ram_enabled) + else if (!wram_ram_enabled || Wram is null) return 0xFF; //empty bus else { @@ -282,7 +282,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES public override void WriteWram(int addr, byte value) { if (!wram_ram_selected) return; - else if (!wram_ram_enabled) + else if (!wram_ram_enabled || Wram is null) return; //empty bus else {