aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/dataio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/dataio.cpp')
-rw-r--r--engines/gob/dataio.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/gob/dataio.cpp b/engines/gob/dataio.cpp
index ecd3181838..1fb43e96bb 100644
--- a/engines/gob/dataio.cpp
+++ b/engines/gob/dataio.cpp
@@ -84,12 +84,10 @@ uint32 DataStream::size() const {
void DataStream::seek(int32 offset, int whence) {
if (_stream)
_stream->seek(offset, whence);
-
- int32 resPos = _io->seekChunk(_handle, offset, whence);
- if (resPos != -1)
- return;
-
- _io->file_getHandle(_handle)->seek(offset, whence);
+ else if ((_handle < 50) || (_handle >= 128))
+ _io->file_getHandle(_handle)->seek(offset, whence);
+ else
+ _io->seekChunk(_handle, offset, whence);
}
bool DataStream::eos() const {