aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/kyra/sound_towns.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/sound_towns.cpp b/engines/kyra/sound_towns.cpp
index 60ff20ef60..7d802c8993 100644
--- a/engines/kyra/sound_towns.cpp
+++ b/engines/kyra/sound_towns.cpp
@@ -3031,12 +3031,12 @@ void TownsPC98_OpnCore::writeReg(uint8 part, uint8 regAddress, uint8 value) {
case 0x00:
// ssg
if (_ssg)
- _ssg->writeReg(regAddress, value);
+ _ssg->writeReg(l, value);
break;
case 0x10:
// pcm rhythm channel
if (_prc)
- _prc->writeReg(regAddress - 0x10, value);
+ _prc->writeReg(l, value);
break;
case 0x20:
if (l == 8) {