ZVISION: Simplify check

Thanks to DrMcCoy for spotting this
This commit is contained in:
Filippos Karapetis 2014-12-20 13:27:16 +02:00
parent b41b3e1a89
commit 0f590561bd

View File

@ -73,10 +73,7 @@ RawChunkStream::RawChunk RawChunkStream::readNextChunk(Common::SeekableReadStrea
tmp.size = 0;
tmp.data = NULL;
if (!stream)
return tmp;
if (stream && (stream->size() == 0 || stream->eos()))
if (!stream || stream->size() == 0 || stream->eos())
return tmp;
tmp.size = (stream->size() - stream->pos()) * 2;