summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/mexico86.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/mexico86.c')
-rw-r--r--src/mame/drivers/mexico86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/mexico86.c b/src/mame/drivers/mexico86.c
index 8fe6f698184..dde5db1a6a3 100644
--- a/src/mame/drivers/mexico86.c
+++ b/src/mame/drivers/mexico86.c
@@ -421,7 +421,7 @@ static const ym2203_interface ym2203_config =
static MACHINE_START( mexico86 )
{
mexico86_state *state = machine.driver_data<mexico86_state>();
- UINT8 *ROM = machine.region("maincpu")->base();
+ UINT8 *ROM = state->memregion("maincpu")->base();
state->membank("bank1")->configure_entries(0, 6, &ROM[0x10000], 0x4000);