From 2e47a293dd49b0d98c23400d83529641b55c452f Mon Sep 17 00:00:00 2001 From: David Haywood Date: Thu, 10 Dec 2015 23:26:44 +0000 Subject: [PATCH] fix crash, but what a terrible hack this is in the first place (nw) --- src/devices/bus/nes/mmc5.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/bus/nes/mmc5.cpp b/src/devices/bus/nes/mmc5.cpp index 4fcc50282d3..7c114ca0e77 100644 --- a/src/devices/bus/nes/mmc5.cpp +++ b/src/devices/bus/nes/mmc5.cpp @@ -468,8 +468,8 @@ WRITE8_MEMBER(nes_exrom_device::write_l) if ((offset >= 0x1000) && (offset <= 0x1015)) { - // SOUND - nesapu_device *m_sound = machine().device("maincpu::nessound"); + // SOUND (this is a hack, it should have extra channels, not pass to the existing APU!!!) + nesapu_device *m_sound = machine().device("maincpu:nesapu"); m_sound->write(space, offset & 0x1f, data); return; }