summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/sms_ctrl/multitap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/sms_ctrl/multitap.cpp')
-rw-r--r--src/devices/bus/sms_ctrl/multitap.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/devices/bus/sms_ctrl/multitap.cpp b/src/devices/bus/sms_ctrl/multitap.cpp
index 2e5c0e0701a..74d6c749cb5 100644
--- a/src/devices/bus/sms_ctrl/multitap.cpp
+++ b/src/devices/bus/sms_ctrl/multitap.cpp
@@ -131,8 +131,11 @@ void sms_multitap_device::device_add_mconfig(machine_config &config)
SMS_CONTROL_PORT(config, m_subctrl2_port, sms_control_port_devices, "joypad");
SMS_CONTROL_PORT(config, m_subctrl3_port, sms_control_port_devices, "joypad");
SMS_CONTROL_PORT(config, m_subctrl4_port, sms_control_port_devices, "joypad");
- m_subctrl1_port->set_screen_tag(m_port->m_screen);
- m_subctrl2_port->set_screen_tag(m_port->m_screen);
- m_subctrl3_port->set_screen_tag(m_port->m_screen);
- m_subctrl4_port->set_screen_tag(m_port->m_screen);
+ if (m_port != nullptr)
+ {
+ m_subctrl1_port->set_screen_tag(m_port->m_screen);
+ m_subctrl2_port->set_screen_tag(m_port->m_screen);
+ m_subctrl3_port->set_screen_tag(m_port->m_screen);
+ m_subctrl4_port->set_screen_tag(m_port->m_screen);
+ }
}