summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/yunsung8.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/yunsung8.c')
-rw-r--r--src/mame/drivers/yunsung8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/yunsung8.c b/src/mame/drivers/yunsung8.c
index 743d5d3c289..d0d05136ec8 100644
--- a/src/mame/drivers/yunsung8.c
+++ b/src/mame/drivers/yunsung8.c
@@ -466,8 +466,8 @@ static const msm5205_interface yunsung8_msm5205_interface =
static MACHINE_START( yunsung8 )
{
yunsung8_state *state = machine.driver_data<yunsung8_state>();
- UINT8 *MAIN = machine.root_device().memregion("maincpu")->base();
- UINT8 *AUDIO = machine.root_device().memregion("audiocpu")->base();
+ UINT8 *MAIN = state->memregion("maincpu")->base();
+ UINT8 *AUDIO = state->memregion("audiocpu")->base();
state->m_videoram_0 = state->m_videoram + 0x0000; // Ram is banked
state->m_videoram_1 = state->m_videoram + 0x2000;