summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/sandscrp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/sandscrp.c')
-rw-r--r--src/mame/drivers/sandscrp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/sandscrp.c b/src/mame/drivers/sandscrp.c
index 31507bffc3c..e1a490fc9ad 100644
--- a/src/mame/drivers/sandscrp.c
+++ b/src/mame/drivers/sandscrp.c
@@ -269,7 +269,7 @@ ADDRESS_MAP_END
WRITE8_MEMBER(sandscrp_state::sandscrp_bankswitch_w)
{
- UINT8 *RAM = machine().region("maincpu")->base();
+ UINT8 *RAM = memregion("maincpu")->base();
int bank = data & 0x07;
if ( bank != data ) logerror("CPU #1 - PC %04X: Bank %02X\n",cpu_get_pc(&space.device()),data);