aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/nebular
diff options
context:
space:
mode:
authorStrangerke2014-05-28 07:18:14 +0200
committerStrangerke2014-05-28 07:19:18 +0200
commit0eb5a7f0b27cdf49c4815fb02b9ee76959154be8 (patch)
treea0bd5aaa2caef434cf506fa38ee0e3e4623283f0 /engines/mads/nebular
parent1ea4b36c3b6f959048cab0c6a5567fefcc390cc3 (diff)
downloadscummvm-rg350-0eb5a7f0b27cdf49c4815fb02b9ee76959154be8.tar.gz
scummvm-rg350-0eb5a7f0b27cdf49c4815fb02b9ee76959154be8.tar.bz2
scummvm-rg350-0eb5a7f0b27cdf49c4815fb02b9ee76959154be8.zip
MADS: Fix some more missing initializations
Diffstat (limited to 'engines/mads/nebular')
-rw-r--r--engines/mads/nebular/sound_nebular.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/mads/nebular/sound_nebular.cpp b/engines/mads/nebular/sound_nebular.cpp
index 577ed26d13..90f7cf0212 100644
--- a/engines/mads/nebular/sound_nebular.cpp
+++ b/engines/mads/nebular/sound_nebular.cpp
@@ -185,6 +185,13 @@ ASound::ASound(Audio::Mixer *mixer, const Common::String &filename, int dataOffs
_samplesPerCallback = getRate() / CALLBACKS_PER_SECOND;
_samplesPerCallbackRemainder = getRate() % CALLBACKS_PER_SECOND;
+ for (int i = 0; i < 11; ++i) {
+ _channelData[i]._field0 = 0;
+ _channelData[i]._freqMask = 0;
+ _channelData[i]._freqBase = 0;
+ _channelData[i]._field6 = 0;
+ }
+
AdlibChannel::_channelsEnabled = false;
// Store passed parameters, and setup OPL