summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/calorie.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/calorie.c')
-rw-r--r--src/mame/drivers/calorie.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/calorie.c b/src/mame/drivers/calorie.c
index fec43caee04..c4946e59a15 100644
--- a/src/mame/drivers/calorie.c
+++ b/src/mame/drivers/calorie.c
@@ -117,7 +117,7 @@ public:
static TILE_GET_INFO( get_bg_tile_info )
{
calorie_state *state = machine.driver_data<calorie_state>();
- UINT8 *src = machine.region("user1")->base();
+ UINT8 *src = state->memregion("user1")->base();
int bg_base = (state->m_bg_bank & 0x0f) * 0x200;
int code = src[bg_base + tile_index] | (((src[bg_base + tile_index + 0x100]) & 0x10) << 4);
int color = src[bg_base + tile_index + 0x100] & 0x0f;
@@ -556,7 +556,7 @@ static DRIVER_INIT( calorie )
static DRIVER_INIT( calorieb )
{
address_space *space = machine.device("maincpu")->memory().space(AS_PROGRAM);
- space->set_decrypted_region(0x0000, 0x7fff, machine.region("maincpu")->base() + 0x10000);
+ space->set_decrypted_region(0x0000, 0x7fff, machine.root_device().memregion("maincpu")->base() + 0x10000);
}