Stopping the seek() going into the header

svn-id: r41798
This commit is contained in:
Sven Hesse 2009-06-23 01:23:31 +00:00
parent fcddd5c69a
commit 96c13416f1

View File

@ -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;