diff options
Diffstat (limited to 'src/devices/bus/sms_ctrl/rfu.cpp')
-rw-r--r-- | src/devices/bus/sms_ctrl/rfu.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/bus/sms_ctrl/rfu.cpp b/src/devices/bus/sms_ctrl/rfu.cpp index b8e991e71d3..d28a2ded703 100644 --- a/src/devices/bus/sms_ctrl/rfu.cpp +++ b/src/devices/bus/sms_ctrl/rfu.cpp @@ -135,6 +135,7 @@ WRITE_LINE_MEMBER( sms_rapid_fire_device::th_pin_w ) void sms_rapid_fire_device::device_add_mconfig(machine_config &config) { SMS_CONTROL_PORT(config, m_subctrl_port, sms_control_port_devices, "joypad"); - m_subctrl_port->set_screen_tag(m_port->m_screen); + if (m_port != nullptr) + m_subctrl_port->set_screen_tag(m_port->m_screen); m_subctrl_port->th_input_handler().set(FUNC(sms_rapid_fire_device::th_pin_w)); } |