aboutsummaryrefslogtreecommitdiff
path: root/sword2/driver
diff options
context:
space:
mode:
Diffstat (limited to 'sword2/driver')
-rw-r--r--sword2/driver/d_sound.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/sword2/driver/d_sound.cpp b/sword2/driver/d_sound.cpp
index 7279db7538..39992b18d6 100644
--- a/sword2/driver/d_sound.cpp
+++ b/sword2/driver/d_sound.cpp
@@ -691,6 +691,9 @@ uint32 Sound::preFetchCompSpeech(uint32 speechId, uint16 **buf) {
AudioStream *input = getAudioStream(&fp, "speech", _vm->_resman->whichCd(), speechId, &numSamples);
+ if (!input)
+ return 0;
+
*buf = NULL;
// Decompress data into speech buffer.