diff options
author | 2019-07-12 09:39:39 -0400 | |
---|---|---|
committer | 2019-07-12 09:39:39 -0400 | |
commit | 46b0fa88be0bce3d39ca0daa204f2500263802cc (patch) | |
tree | a1fe1ca740cc94a31424a4e3ada9b711e933d942 /src/devices/bus/nes_ctrl/joypad.cpp | |
parent | 12e99942ff3048f3e8f45f2a00039cb09108b385 (diff) |
bus/gamegear, bus/nes_ctrl, bus/sms_ctrl: Prevent crashing during validation (nw)
Diffstat (limited to 'src/devices/bus/nes_ctrl/joypad.cpp')
-rw-r--r-- | src/devices/bus/nes_ctrl/joypad.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/bus/nes_ctrl/joypad.cpp b/src/devices/bus/nes_ctrl/joypad.cpp index 0605eea2d9a..1027340cf63 100644 --- a/src/devices/bus/nes_ctrl/joypad.cpp +++ b/src/devices/bus/nes_ctrl/joypad.cpp @@ -175,7 +175,8 @@ void nes_arcstick_device::device_add_mconfig(machine_config &config) { // expansion port to allow daisy chaining NES_CONTROL_PORT(config, m_daisychain, arcstick_daisy, nullptr); - m_daisychain->set_screen_tag(m_port->m_screen); + if (m_port != nullptr) + m_daisychain->set_screen_tag(m_port->m_screen); } |