diff options
author | athrxx | 2011-09-13 23:10:02 +0200 |
---|---|---|
committer | athrxx | 2011-09-17 21:15:41 +0200 |
commit | 867f2887e8b3c74dda2b66ea58a26148286db1a3 (patch) | |
tree | 005f3507572c6540f0462a790187491765614f9e /audio/softsynth/fmtowns_pc98 | |
parent | 9c5415b6ae63a685abdbb523bdb091b9e8feebb0 (diff) | |
download | scummvm-rg350-867f2887e8b3c74dda2b66ea58a26148286db1a3.tar.gz scummvm-rg350-867f2887e8b3c74dda2b66ea58a26148286db1a3.tar.bz2 scummvm-rg350-867f2887e8b3c74dda2b66ea58a26148286db1a3.zip |
SCUMM FM-TOWNS: fix invalid mem accesses
- handle some invalid sound resources that come up when starting LOOM
- fix typo in midi driver code (causing invalid mem reads)
Diffstat (limited to 'audio/softsynth/fmtowns_pc98')
-rw-r--r-- | audio/softsynth/fmtowns_pc98/towns_midi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/softsynth/fmtowns_pc98/towns_midi.cpp b/audio/softsynth/fmtowns_pc98/towns_midi.cpp index d69ed73ee6..b8203944c0 100644 --- a/audio/softsynth/fmtowns_pc98/towns_midi.cpp +++ b/audio/softsynth/fmtowns_pc98/towns_midi.cpp @@ -563,7 +563,7 @@ int TownsMidiOutputChannel::getEffectModLevel(int lvl, int mod) { if (lvl < 0) return -_driver->_operatorLevelTable[((-lvl) << 5) + mod]; else - return _driver->_operatorLevelTable[((-lvl) << 5) + mod]; + return _driver->_operatorLevelTable[(lvl << 5) + mod]; } return 0; |