aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/script.h
diff options
context:
space:
mode:
authorColin Snover2017-02-22 12:38:07 -0600
committerColin Snover2017-04-23 13:07:25 -0500
commita799cb3462a220afcd705c74291075f98520d87c (patch)
treeb5ac536e8532cec31e0462f6b43fe27df0ce808c /engines/sci/engine/script.h
parentfc02b34215f218d2e0a0f20990654b120f52efd0 (diff)
downloadscummvm-rg350-a799cb3462a220afcd705c74291075f98520d87c.tar.gz
scummvm-rg350-a799cb3462a220afcd705c74291075f98520d87c.tar.bz2
scummvm-rg350-a799cb3462a220afcd705c74291075f98520d87c.zip
SCI: Fix SCI3 exports
Export functions may be relocated above 64k in SCI3, but exports that do not have an entry in the relocation table must be handled the same as SCI1.1-2.1.
Diffstat (limited to 'engines/sci/engine/script.h')
-rw-r--r--engines/sci/engine/script.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/engine/script.h b/engines/sci/engine/script.h
index 2be3fd0264..f63b312647 100644
--- a/engines/sci/engine/script.h
+++ b/engines/sci/engine/script.h
@@ -260,9 +260,10 @@ public:
int relocateOffsetSci3(uint32 offset) const;
/**
- * Gets an offset to the beginning of the code block in a SCI3 script
+ * Gets an offset to the beginning of the code block in a SCI1.1 or later
+ * script
*/
- int getCodeBlockOffsetSci3() { return _buf->getInt32SEAt(0); }
+ int getCodeBlockOffset() { return _codeOffset; }
/**
* Get the offset array