From d1ae95982c2d4d04704937555e0dd016a73e601d Mon Sep 17 00:00:00 2001 From: AJR Date: Sun, 6 Oct 2024 10:50:49 -0400 Subject: sound/k054539.cpp: Fix build --- src/devices/sound/k054539.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/sound/k054539.cpp b/src/devices/sound/k054539.cpp index 126141c9a9c..b7108e925f8 100644 --- a/src/devices/sound/k054539.cpp +++ b/src/devices/sound/k054539.cpp @@ -482,7 +482,7 @@ u8 k054539_device::read(offs_t offset) case 0x22d: if(regs[0x22f] & 0x10) { offs_t const addr = (cur_ptr & 0x3fff) | ((cur_ptr & 0x10000) >> 2); - uint8_t res = (rom_addr == 0x80) ? ram[ram_addr] : read_byte((0x20000*rom_addr) + cur_ptr); + uint8_t res = (rom_addr == 0x80) ? ram[addr] : read_byte((0x20000*rom_addr) + cur_ptr); if(!machine().side_effects_disabled()) cur_ptr = (cur_ptr + 1) & 0x1ffff; return res; -- cgit v1.2.3