diff options
author | Paul Gilbert | 2017-02-08 22:10:15 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-02-08 22:10:15 -0500 |
commit | 017056fb2ea3e95c556749285985b4700e274ec6 (patch) | |
tree | c0a0d6c49765446bc772fb6fe7c936e956190ff4 | |
parent | bc08f9a4e59b400cd6655fdca9549d2a942cfbb8 (diff) | |
download | scummvm-rg350-017056fb2ea3e95c556749285985b4700e274ec6.tar.gz scummvm-rg350-017056fb2ea3e95c556749285985b4700e274ec6.tar.bz2 scummvm-rg350-017056fb2ea3e95c556749285985b4700e274ec6.zip |
TITANIC: Fix for CMusicParser parsing
-rw-r--r-- | engines/titanic/sound/music_object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/sound/music_object.cpp b/engines/titanic/sound/music_object.cpp index 3e8d887412..edf652a287 100644 --- a/engines/titanic/sound/music_object.cpp +++ b/engines/titanic/sound/music_object.cpp @@ -170,8 +170,8 @@ bool CMusicParser::parse(CValuePair &r) { r._field0 = _field8; } else if (_currentChar >= 'a' && _currentChar <= 'g') { val1 -= val2; - if (val1 < 0) - val1 = 12; + if (val1 >= 0) + val1 -= 12; r._field0 = _field8 + val1; } else if (_currentChar >= 'A' && _currentChar <= 'G') { val1 -= val2; |