aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/script.h
diff options
context:
space:
mode:
authorSven Hesse2009-06-22 20:51:34 +0000
committerSven Hesse2009-06-22 20:51:34 +0000
commitc31b79b7c99b56d1891de716038608f2a6b919dd (patch)
tree8d487c4e5c044d4865fa77f39af3fa6d524c9160 /engines/gob/script.h
parent4ab45170163f70a85c400bc50d0e20501e0cd24c (diff)
downloadscummvm-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.h3
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();