From 6d5e75f46347c0d529cc8e1b0aa9cb57169059d2 Mon Sep 17 00:00:00 2001 From: Fabio Priuli Date: Wed, 16 May 2012 21:25:46 +0000 Subject: [PATCH] scramble.c: fixed crash in 800fath,mariner, knockout, triplep and sets having a 7474 without the "audiocpu". no idea why it has started to crash only now... no whatsnew. --- src/mame/audio/scramble.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mame/audio/scramble.c b/src/mame/audio/scramble.c index 54ace7aed52..2e2a287d065 100644 --- a/src/mame/audio/scramble.c +++ b/src/mame/audio/scramble.c @@ -114,7 +114,8 @@ WRITE_LINE_DEVICE_HANDLER( scramble_sh_7474_q_callback ) { /* the Q bar is connected to the Z80's INT line. But since INT is complemented, */ /* we need to complement Q bar */ - cputag_set_input_line(device->machine(), "audiocpu", 0, !state ? ASSERT_LINE : CLEAR_LINE); + if (device->machine().device("audiocpu")) + cputag_set_input_line(device->machine(), "audiocpu", 0, !state ? ASSERT_LINE : CLEAR_LINE); } WRITE8_MEMBER(scramble_state::hotshock_sh_irqtrigger_w)