summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/2610intf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/2610intf.cpp')
-rw-r--r--src/devices/sound/2610intf.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/devices/sound/2610intf.cpp b/src/devices/sound/2610intf.cpp
index fe4077b2d40..03c3fc218a2 100644
--- a/src/devices/sound/2610intf.cpp
+++ b/src/devices/sound/2610intf.cpp
@@ -117,9 +117,10 @@ void ym2610_device::device_start()
/**** initialize YM2610 ****/
m_chip = ym2610_init(this, clock(), rate,
- &ym2610_device::static_adpcm_a_read_byte, &ym2610_device::static_adpcm_b_read_byte,
- &ym2610_device::static_timer_handler, &ym2610_device::static_irq_handler, &psgintf);
- assert_always(m_chip != nullptr, "Error creating YM2610 chip");
+ &ym2610_device::static_adpcm_a_read_byte, &ym2610_device::static_adpcm_b_read_byte,
+ &ym2610_device::static_timer_handler, &ym2610_device::static_irq_handler, &psgintf);
+ if (!m_chip)
+ throw emu_fatalerror("ym2610_device(%s): Error creating YM2610 chip", tag());
}
//-------------------------------------------------