summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/naomim2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/naomim2.c')
-rw-r--r--src/mame/machine/naomim2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/machine/naomim2.c b/src/mame/machine/naomim2.c
index fd7328010a9..7f2bf4f4bc5 100644
--- a/src/mame/machine/naomim2.c
+++ b/src/mame/machine/naomim2.c
@@ -20,7 +20,7 @@ void naomi_m2_board::device_start()
{
naomi_board::device_start();
- const UINT8 *key_data = machine().region(key_tag)->base();
+ const UINT8 *key_data = memregion(key_tag)->base();
key = (key_data[0] << 24) | (key_data[1] << 16) | (key_data[2] << 8) | key_data[3];
ram = auto_alloc_array(machine(), UINT8, RAM_SIZE);