diff options
author | Sven Hesse | 2009-06-22 20:51:34 +0000 |
---|---|---|
committer | Sven Hesse | 2009-06-22 20:51:34 +0000 |
commit | c31b79b7c99b56d1891de716038608f2a6b919dd (patch) | |
tree | 8d487c4e5c044d4865fa77f39af3fa6d524c9160 /engines/gob/script.h | |
parent | 4ab45170163f70a85c400bc50d0e20501e0cd24c (diff) | |
download | scummvm-rg350-c31b79b7c99b56d1891de716038608f2a6b919dd.tar.gz scummvm-rg350-c31b79b7c99b56d1891de716038608f2a6b919dd.tar.bz2 scummvm-rg350-c31b79b7c99b56d1891de716038608f2a6b919dd.zip |
Properly guarding Script::getOffset() and adding a reverse operation
svn-id: r41782
Diffstat (limited to 'engines/gob/script.h')
-rw-r--r-- | engines/gob/script.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/gob/script.h b/engines/gob/script.h index 4e1457552e..697bad344d 100644 --- a/engines/gob/script.h +++ b/engines/gob/script.h @@ -90,6 +90,9 @@ public: /** Returns the offset the specified pointer is within the script data. */ int32 getOffset(byte *ptr); + /** Returns the data pointer to the offset. */ + byte *getData(int32 offset); + /** Returns the raw data pointer. */ byte *getData(); |