summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/mconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/mconfig.cpp')
-rw-r--r--src/emu/mconfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/mconfig.cpp b/src/emu/mconfig.cpp
index 33daa4297b7..a5680eb9e41 100644
--- a/src/emu/mconfig.cpp
+++ b/src/emu/mconfig.cpp
@@ -155,7 +155,7 @@ device_t *machine_config::device_add(device_t *owner, const char *tag, device_ty
m_root_device = type(*this, tag, nullptr, clock);
driver_device *driver = dynamic_cast<driver_device *>(m_root_device.get());
if (driver)
- driver_device::static_set_game(*driver, m_gamedrv);
+ driver->set_game_driver(m_gamedrv);
m_root_device->add_machine_configuration(*this);
return m_root_device.get();
}