aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--queen/sound.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/queen/sound.cpp b/queen/sound.cpp
index 47a1d26315..04dfec2811 100644
--- a/queen/sound.cpp
+++ b/queen/sound.cpp
@@ -40,6 +40,9 @@ Sound::~Sound() {
}
Sound *Sound::giveSound(SoundMixer *mixer, QueenEngine *vm, uint8 compression) {
+ if (!mixer->isReady())
+ return new SilentSound(mixer, vm);
+
switch(compression) {
case COMPRESSION_NONE:
return new SBSound(mixer, vm);