summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/bus/nes/mmc3_clones.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/bus/nes/mmc3_clones.c')
-rw-r--r--src/emu/bus/nes/mmc3_clones.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/bus/nes/mmc3_clones.c b/src/emu/bus/nes/mmc3_clones.c
index 777c8e5a268..ef75d45c329 100644
--- a/src/emu/bus/nes/mmc3_clones.c
+++ b/src/emu/bus/nes/mmc3_clones.c
@@ -2077,7 +2077,7 @@ WRITE8_MEMBER(nes_bmc_hik8_device::write_m)
/* This bit is the "register lock". Once register are locked, writes go to WRAM
and there is no way to unlock them (except by resetting the machine) */
- if ((m_reg[3] & 0x40) && m_prgram)
+ if ((m_reg[3] & 0x40) && !m_prgram.empty())
m_prgram[offset] = data;
else
{