mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 03:56:20 +00:00
no need to assert here, just don't start playing the stream if read failed
svn-id: r29107
This commit is contained in:
parent
8d84e9add1
commit
72d0be841f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user