summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/seta.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/seta.c')
-rw-r--r--src/mame/video/seta.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mame/video/seta.c b/src/mame/video/seta.c
index 36e014ff6a2..0e2e3ce214e 100644
--- a/src/mame/video/seta.c
+++ b/src/mame/video/seta.c
@@ -279,9 +279,10 @@ WRITE16_HANDLER( seta_vregs_w )
---- ---- ---- ---0 Coin #0 Counter */
if (ACCESSING_BITS_0_7)
{
+ const device_config *x1_010 = devtag_get_device(space->machine, SOUND, "x1");
seta_coin_lockout_w (space->machine, data & 0x0f);
- if (sndti_exists(SOUND_X1_010, 0))
- seta_sound_enable_w (data & 0x20);
+ if (x1_010 != NULL)
+ seta_sound_enable_w (x1_010, data & 0x20);
coin_counter_w(0,data & 0x01);
coin_counter_w(1,data & 0x02);
}