aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/sound.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/sound.h b/engines/kyra/sound.h
index e0c5398300..126ffca760 100644
--- a/engines/kyra/sound.h
+++ b/engines/kyra/sound.h
@@ -462,7 +462,7 @@ public:
MixedSoundDriver(KyraEngine *vm, Audio::Mixer *mixer, Sound *music, Sound *sfx) : Sound(vm, mixer), _music(music), _sfx(sfx) {}
~MixedSoundDriver() { delete _music; delete _sfx; }
- bool init() { return _music->init() | _sfx->init(); }
+ bool init() { return (_music->init() && _sfx->init()); }
void process() { _music->process(); _sfx->process(); }
void setVolume(int volume) { _music->setVolume(volume); _sfx->setVolume(volume); }