deco146.cpp: fixed regression with stadhr96 (nw)

This commit is contained in:
Ivan Vangelista 2016-05-21 07:16:13 +02:00
parent c281551ebb
commit b724cf3c96

View File

@ -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);
}