summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/cop01.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/cop01.c')
-rw-r--r--src/mame/drivers/cop01.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/cop01.c b/src/mame/drivers/cop01.c
index 4804fd62e96..bc6ec5a81bb 100644
--- a/src/mame/drivers/cop01.c
+++ b/src/mame/drivers/cop01.c
@@ -654,7 +654,7 @@ static DRIVER_INIT( mightguy )
#if MIGHTGUY_HACK
/* This is a hack to fix the game code to get a fully working
"Starting Area" fake Dip Switch */
- UINT8 *RAM = (UINT8 *)machine.region("maincpu")->base();
+ UINT8 *RAM = (UINT8 *)machine.root_device().memregion("maincpu")->base();
RAM[0x00e4] = 0x07; // rlca
RAM[0x00e5] = 0x07; // rlca
RAM[0x00e6] = 0x07; // rlca