aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/sound
diff options
context:
space:
mode:
authorPaul Gilbert2017-02-08 22:10:15 -0500
committerPaul Gilbert2017-02-08 22:10:15 -0500
commit017056fb2ea3e95c556749285985b4700e274ec6 (patch)
treec0a0d6c49765446bc772fb6fe7c936e956190ff4 /engines/titanic/sound
parentbc08f9a4e59b400cd6655fdca9549d2a942cfbb8 (diff)
downloadscummvm-rg350-017056fb2ea3e95c556749285985b4700e274ec6.tar.gz
scummvm-rg350-017056fb2ea3e95c556749285985b4700e274ec6.tar.bz2
scummvm-rg350-017056fb2ea3e95c556749285985b4700e274ec6.zip
TITANIC: Fix for CMusicParser parsing
Diffstat (limited to 'engines/titanic/sound')
-rw-r--r--engines/titanic/sound/music_object.cpp4
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;