diff options
Diffstat (limited to 'src/emu/disound.c')
-rw-r--r-- | src/emu/disound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/disound.c b/src/emu/disound.c index 29c13c1d114..3734739d170 100644 --- a/src/emu/disound.c +++ b/src/emu/disound.c @@ -122,7 +122,7 @@ bool device_config_sound_interface::interface_validity_check(const game_driver & // if it's not a speaker or a sound device, error const device_config_sound_interface *sound; - if (target->type() != SPEAKER && !target->interface(sound)) + if (target != NULL && target->type() != SPEAKER && !target->interface(sound)) { mame_printf_error("%s: %s attempting to route sound to a non-sound device '%s' (%s)\n", driver.source_file, driver.name, route->m_target, target->name()); error = true; |