From b724cf3c96553907e7eb31d9d36b553463502ea0 Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Sat, 21 May 2016 07:16:13 +0200 Subject: [PATCH] deco146.cpp: fixed regression with stadhr96 (nw) --- src/mame/machine/deco146.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mame/machine/deco146.cpp b/src/mame/machine/deco146.cpp index 9ecd224c2ae..9e477f3aae9 100644 --- a/src/mame/machine/deco146.cpp +++ b/src/mame/machine/deco146.cpp @@ -1372,7 +1372,8 @@ UINT16 deco_146_base_device::port_c_default(int unused) void deco_146_base_device::soundlatch_default(address_space &space, UINT16 data, UINT16 mem_mask) { - m_sound_latch->write(space, 0, data & 0xff); + if (m_sound_latch != nullptr) + m_sound_latch->write(space, 0, data & 0xff); cpu_device* cpudev = (cpu_device*)machine().device(":audiocpu"); if (cpudev) cpudev->set_input_line(0, HOLD_LINE); }