summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-05-25 23:22:48 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-05-25 23:22:48 -0400
commit4a602c8888470bb8c40d1681baf8a2af590a0a3b (patch)
treeae52ea0c85ca448c4f12b7e60d49a1e8e2426a0d /src
parent320be30ebaaeeeb7930415217f76e25316a55ac8 (diff)
royalmah.cpp: Eliminate machine().device (nw)
Diffstat (limited to 'src')
-rw-r--r--src/mame/drivers/royalmah.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/royalmah.cpp b/src/mame/drivers/royalmah.cpp
index fe53a445651..a12fe9a3301 100644
--- a/src/mame/drivers/royalmah.cpp
+++ b/src/mame/drivers/royalmah.cpp
@@ -5223,7 +5223,7 @@ void royalmah_state::init_janptr96()
m_janptr96_nvram = std::make_unique<uint8_t[]>(0x1000 * 9);
membank("bank3")->set_base(m_janptr96_nvram.get());
- machine().device<nvram_device>("nvram")->set_base(m_janptr96_nvram.get(), 0x1000 * 9);
+ subdevice<nvram_device>("nvram")->set_base(m_janptr96_nvram.get(), 0x1000 * 9);
membank("rambank")->configure_entries(0, 8, m_janptr96_nvram.get() + 0x1000, 0x1000);
}