diff options
-rw-r--r-- | engines/zvision/sound/zork_raw.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/zvision/sound/zork_raw.cpp b/engines/zvision/sound/zork_raw.cpp index 78c851e132..393f2eb6a9 100644 --- a/engines/zvision/sound/zork_raw.cpp +++ b/engines/zvision/sound/zork_raw.cpp @@ -73,6 +73,9 @@ RawChunkStream::RawChunk RawChunkStream::readNextChunk(Common::SeekableReadStrea tmp.size = 0; tmp.data = NULL; + if (!stream) + return tmp; + if (stream && (stream->size() == 0 || stream->eos())) return tmp; |