diff options
Diffstat (limited to 'engines/gob/script.cpp')
-rw-r--r-- | engines/gob/script.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/gob/script.cpp b/engines/gob/script.cpp index 72085ed756..d5dc53284e 100644 --- a/engines/gob/script.cpp +++ b/engines/gob/script.cpp @@ -107,6 +107,12 @@ bool Script::seek(int32 offset, int whence) { if ((offset < 0) || (((uint32) offset) >= _totSize)) return false; + // Cannot seek into the header + if (offset < 128) { + _finished = true; + return false; + } + // A successful seek means the script file continues to be executed _finished = false; |