aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2017-02-05 23:57:47 -0500
committerPaul Gilbert2017-02-05 23:57:47 -0500
commite13806148bac0038c0879e4dcd4145d5558f5b99 (patch)
tree3549cf26e50561b94c734e375ce514f79a549b80 /engines
parentc45d5442d13d4a7e9794c2db2ad27d91cfed0b52 (diff)
downloadscummvm-rg350-e13806148bac0038c0879e4dcd4145d5558f5b99.tar.gz
scummvm-rg350-e13806148bac0038c0879e4dcd4145d5558f5b99.tar.bz2
scummvm-rg350-e13806148bac0038c0879e4dcd4145d5558f5b99.zip
TITANIC: Fix populated contents of CMusicWave array
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/sound/music_wave.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/sound/music_wave.cpp b/engines/titanic/sound/music_wave.cpp
index a1dd460d0f..5f111a440d 100644
--- a/engines/titanic/sound/music_wave.cpp
+++ b/engines/titanic/sound/music_wave.cpp
@@ -334,14 +334,14 @@ void CMusicWave::setupArray(int minVal, int maxVal) {
double val = 1.0594634;
for (int idx = 1; idx <= maxVal; ++idx) {
- val *= 1.0594634;
_array[_arrayIndex + idx] = val;
+ val *= 1.0594634;
}
val = 0.94387404038686;
for (int idx = -1; idx >= minVal; --idx) {
- val *= 0.94387404038686;
_array[_arrayIndex + idx] = val;
+ val *= 0.94387404038686;
}
}