diff options
author | Colin Snover | 2017-02-22 12:38:07 -0600 |
---|---|---|
committer | Colin Snover | 2017-04-23 13:07:25 -0500 |
commit | a799cb3462a220afcd705c74291075f98520d87c (patch) | |
tree | b5ac536e8532cec31e0462f6b43fe27df0ce808c /engines/sci/engine/kscripts.cpp | |
parent | fc02b34215f218d2e0a0f20990654b120f52efd0 (diff) | |
download | scummvm-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/kscripts.cpp')
-rw-r--r-- | engines/sci/engine/kscripts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kscripts.cpp b/engines/sci/engine/kscripts.cpp index 30a1fab71a..98c35fcb49 100644 --- a/engines/sci/engine/kscripts.cpp +++ b/engines/sci/engine/kscripts.cpp @@ -246,7 +246,7 @@ reg_t kScriptID(EngineState *s, int argc, reg_t *argv) { return NULL_REG; } - uint16 address = scr->validateExportFunc(index, true); + uint32 address = scr->validateExportFunc(index, true); // Point to the heap for SCI1.1 - SCI2.1 games if (getSciVersion() >= SCI_VERSION_1_1 && getSciVersion() <= SCI_VERSION_2_1_LATE) |