summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/ladybug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/ladybug.c')
-rw-r--r--src/mame/drivers/ladybug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/ladybug.c b/src/mame/drivers/ladybug.c
index 5db4a857dd8..adbf04633da 100644
--- a/src/mame/drivers/ladybug.c
+++ b/src/mame/drivers/ladybug.c
@@ -1045,8 +1045,8 @@ static DRIVER_INIT( dorodon )
offs_t i;
address_space *space = machine.device("maincpu")->memory().space(AS_PROGRAM);
UINT8 *decrypted = auto_alloc_array(machine, UINT8, 0x6000);
- UINT8 *rom = machine.region("maincpu")->base();
- UINT8 *table = machine.region("user1")->base();
+ UINT8 *rom = machine.root_device().memregion("maincpu")->base();
+ UINT8 *table = machine.root_device().memregion("user1")->base();
space->set_decrypted_region(0x0000, 0x5fff, decrypted);