summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/namco_163.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/namco_163.cpp')
-rw-r--r--src/devices/sound/namco_163.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/sound/namco_163.cpp b/src/devices/sound/namco_163.cpp
index 08daf720d17..01c6b32748b 100644
--- a/src/devices/sound/namco_163.cpp
+++ b/src/devices/sound/namco_163.cpp
@@ -137,8 +137,8 @@ void namco_163_sound_device::data_w(u8 data)
u8 namco_163_sound_device::data_r()
{
- u8 val = m_ram[m_addr];
- if (m_inc)
+ const u8 val = m_ram[m_addr];
+ if ((!machine().side_effects_disabled()) && m_inc)
m_addr = (m_addr + 1) & 0x7f;
return val;