aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorGregory Montoir2007-09-26 19:20:59 +0000
committerGregory Montoir2007-09-26 19:20:59 +0000
commit72d0be841f3b671fa6379034e4d3c597170f7f62 (patch)
tree462909e0701f83e24f47407c1063967395fcf521 /engines
parent8d84e9add18f71897e90cf6dd4ba8e253a7eaae5 (diff)
downloadscummvm-rg350-72d0be841f3b671fa6379034e4d3c597170f7f62.tar.gz
scummvm-rg350-72d0be841f3b671fa6379034e4d3c597170f7f62.tar.bz2
scummvm-rg350-72d0be841f3b671fa6379034e4d3c597170f7f62.zip
no need to assert here, just don't start playing the stream if read failed
svn-id: r29107
Diffstat (limited to 'engines')
-rw-r--r--engines/touche/resource.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/touche/resource.cpp b/engines/touche/resource.cpp
index 0dcf7505d7..bab3c8a894 100644
--- a/engines/touche/resource.cpp
+++ b/engines/touche/resource.cpp
@@ -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;