aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2011-08-06 03:16:07 +0200
committerJohannes Schickel2011-08-06 03:28:42 +0200
commit5a0eb6ba60f7d4074e1cacb66daf5618beabf750 (patch)
tree572029f5991acb2bfab4727a714aa04116a7c617
parent4854944f093199e2972def1383fb24152fe1038a (diff)
downloadscummvm-rg350-5a0eb6ba60f7d4074e1cacb66daf5618beabf750.tar.gz
scummvm-rg350-5a0eb6ba60f7d4074e1cacb66daf5618beabf750.tar.bz2
scummvm-rg350-5a0eb6ba60f7d4074e1cacb66daf5618beabf750.zip
SCUMM: Fix some valgrind warnings in CMS code.
-rw-r--r--engines/scumm/player_v2cms.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/scumm/player_v2cms.cpp b/engines/scumm/player_v2cms.cpp
index c39b360197..96a1ba1332 100644
--- a/engines/scumm/player_v2cms.cpp
+++ b/engines/scumm/player_v2cms.cpp
@@ -146,10 +146,12 @@ Player_V2CMS::Player_V2CMS(ScummEngine *scumm, Audio::Mixer *mixer)
memset(_cmsVoicesBase, 0, sizeof(Voice)*16);
memset(_cmsVoices, 0, sizeof(Voice2)*8);
memset(_cmsChips, 0, sizeof(MusicChip)*2);
- _midiDelay = _octaveMask = _looping = _tempo = 0;
+ _midiDelay = _octaveMask = _looping = _tempo = _tempoSum = 0;
_midiData = _midiSongBegin = 0;
_musicTimer = _musicTimerTicks = 0;
+ _clkFrequenz = 0;
_loadedMidiSong = 0;
+ _outputTableReady = 0;
memset(_midiChannel, 0, sizeof(Voice2*)*16);
memset(_midiChannelUse, 0, sizeof(byte)*16);