summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/opwolf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/opwolf.c')
-rw-r--r--src/mame/machine/opwolf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/machine/opwolf.c b/src/mame/machine/opwolf.c
index 2d925b8be5f..94d6512b6e3 100644
--- a/src/mame/machine/opwolf.c
+++ b/src/mame/machine/opwolf.c
@@ -420,7 +420,7 @@ WRITE16_MEMBER(opwolf_state::opwolf_cchip_data_w)
if (offset == 0x14)
{
#if OPWOLF_READ_COINAGE_FROM_ROM
- UINT16* rom = (UINT16*)machine().region("maincpu")->base();
+ UINT16* rom = (UINT16*)machine().root_device().memregion("maincpu")->base();
UINT32 coin_table[2] = {0, 0};
UINT8 coin_offset[2];
int slot;