summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/segahang.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/segahang.c')
-rw-r--r--src/mame/drivers/segahang.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/segahang.c b/src/mame/drivers/segahang.c
index 9a4e57e066c..c36bce22ec2 100644
--- a/src/mame/drivers/segahang.c
+++ b/src/mame/drivers/segahang.c
@@ -1762,7 +1762,7 @@ static DRIVER_INIT( enduror )
static DRIVER_INIT( endurobl )
{
address_space *space = machine.device("maincpu")->memory().space(AS_PROGRAM);
- UINT16 *rom = (UINT16 *)machine.region("maincpu")->base();
+ UINT16 *rom = (UINT16 *)machine.root_device().memregion("maincpu")->base();
UINT16 *decrypt = auto_alloc_array(machine, UINT16, 0x40000/2);
hangon_generic_init(machine);
@@ -1776,7 +1776,7 @@ static DRIVER_INIT( endurobl )
static DRIVER_INIT( endurob2 )
{
address_space *space = machine.device("maincpu")->memory().space(AS_PROGRAM);
- UINT16 *rom = (UINT16 *)machine.region("maincpu")->base();
+ UINT16 *rom = (UINT16 *)machine.root_device().memregion("maincpu")->base();
UINT16 *decrypt = auto_alloc_array(machine, UINT16, 0x40000/2);
hangon_generic_init(machine);