From 72d0be841f3b671fa6379034e4d3c597170f7f62 Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Wed, 26 Sep 2007 19:20:59 +0000 Subject: no need to assert here, just don't start playing the stream if read failed svn-id: r29107 --- engines/touche/resource.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines') 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; -- cgit v1.2.3