Skip to content

Commit

Permalink
SHERLOCK: Fix uninitialized variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Jun 13, 2016
1 parent 010e676 commit 013406a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions engines/sherlock/music.cpp
Expand Up @@ -226,6 +226,7 @@ Music::Music(SherlockEngine *vm, Audio::Mixer *mixer) : _vm(vm), _mixer(mixer) {
_midiOption = false;
_midiMusicData = nullptr;
_musicVolume = ConfMan.hasKey("music_volume") ? ConfMan.getInt("music_volume") : 255;
_musicOn = false;

if (IS_3DO) {
// 3DO - uses digital samples for music
Expand Down
4 changes: 3 additions & 1 deletion engines/sherlock/objects.cpp
Expand Up @@ -636,7 +636,9 @@ void Sprite::clear() {
_altImages = nullptr;
_altSeq = 0;
_centerWalk = 0;
Common::fill(&_stopFrames[0], &_stopFrames[8], (ImageFrame *)nullptr);

for (int i = 0; i < 8; i++)
_stopFrames[i] = nullptr;
}

void Sprite::setImageFrame() {
Expand Down

0 comments on commit 013406a

Please sign in to comment.