Logic fix for MixedSoundDriver::init.

svn-id: r29953
This commit is contained in:
Johannes Schickel 2007-12-22 23:29:15 +00:00
parent 019ad44822
commit 0cbff0fc42

View File

@ -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); }