summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/deshoros.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/deshoros.c')
-rw-r--r--src/mame/drivers/deshoros.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/deshoros.c b/src/mame/drivers/deshoros.c
index b564b858426..a3c9c76cd0d 100644
--- a/src/mame/drivers/deshoros.c
+++ b/src/mame/drivers/deshoros.c
@@ -67,7 +67,7 @@ static void answer_bankswitch(running_machine &machine,UINT8 new_bank)
deshoros_state *state = machine.driver_data<deshoros_state>();
if(state->m_bank!=new_bank)
{
- UINT8 *ROM = machine.region("data")->base();
+ UINT8 *ROM = state->memregion("data")->base();
UINT32 bankaddress;
state->m_bank = new_bank;