aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood
diff options
context:
space:
mode:
authorFilippos Karapetis2013-09-26 23:41:55 +0300
committerFilippos Karapetis2013-09-27 01:38:14 +0300
commitf05e43fae615c1c40e53e9285507d13259ab88df (patch)
tree632671c7cbdaa0f4706fdbebeb2de4122406cff1 /engines/neverhood
parentf61e9c1c02a5b9bc11f84ef1bd9569bddc2fdbe3 (diff)
downloadscummvm-rg350-f05e43fae615c1c40e53e9285507d13259ab88df.tar.gz
scummvm-rg350-f05e43fae615c1c40e53e9285507d13259ab88df.tar.bz2
scummvm-rg350-f05e43fae615c1c40e53e9285507d13259ab88df.zip
NEVERHOOD: Fix uninitialized members of the SoundMan class - CID 1022297
Diffstat (limited to 'engines/neverhood')
-rw-r--r--engines/neverhood/sound.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/neverhood/sound.cpp b/engines/neverhood/sound.cpp
index 746dd17de0..e9ebbadb7c 100644
--- a/engines/neverhood/sound.cpp
+++ b/engines/neverhood/sound.cpp
@@ -250,7 +250,9 @@ void SoundItem::update() {
// SoundMan
SoundMan::SoundMan(NeverhoodEngine *vm)
- : _vm(vm), _soundIndex1(-1), _soundIndex2(-1), _soundIndex3(-1) {
+ : _vm(vm), _soundIndex1(-1), _soundIndex2(-1), _soundIndex3(-1),
+ _initialCountdown(0), _playOnceAfterCountdown(false),
+ _initialCountdown3(0), _playOnceAfterCountdown3(false) {
}
SoundMan::~SoundMan() {