From e13806148bac0038c0879e4dcd4145d5558f5b99 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 5 Feb 2017 23:57:47 -0500 Subject: TITANIC: Fix populated contents of CMusicWave array --- engines/titanic/sound/music_wave.cpp | 4 ++-- 1 file 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; } } -- cgit v1.2.3