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