no need to assert here, just don't start playing the stream if read failed

svn-id: r29107
This commit is contained in:
Gregory Montoir 2007-09-26 19:20:59 +00:00
parent 8d84e9add1
commit 72d0be841f

View File

@ -663,8 +663,9 @@ void ToucheEngine::res_loadSpeechSegment(int num) {
}
_fSpeech[0].seek(offs);
Common::MemoryReadStream *tmp = _fSpeech[0].readStream(size);
assert(tmp);
stream = (compressedSpeechFilesTable[_compressedSpeechData].makeStream)(tmp, true, 0, 0, 1);
if (tmp) {
stream = (compressedSpeechFilesTable[_compressedSpeechData].makeStream)(tmp, true, 0, 0, 1);
}
}
if (stream) {
_speechPlaying = true;