diff options
author | Colin Snover | 2017-02-18 16:17:11 -0600 |
---|---|---|
committer | Colin Snover | 2017-04-23 13:07:25 -0500 |
commit | eadf5d818f7dd124a8d70fde7ced8a9e5ce35c04 (patch) | |
tree | d425482d157dbbcbcfe9f7cae6ec6d81dcbe1f56 /engines/sci/engine/kscripts.cpp | |
parent | 2906ca994716d77cca73928a0c053ac5f2aadd94 (diff) | |
download | scummvm-rg350-eadf5d818f7dd124a8d70fde7ced8a9e5ce35c04.tar.gz scummvm-rg350-eadf5d818f7dd124a8d70fde7ced8a9e5ce35c04.tar.bz2 scummvm-rg350-eadf5d818f7dd124a8d70fde7ced8a9e5ce35c04.zip |
SCI: Fix support for 32-bit SCI3 script offsets
Diffstat (limited to 'engines/sci/engine/kscripts.cpp')
-rw-r--r-- | engines/sci/engine/kscripts.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/sci/engine/kscripts.cpp b/engines/sci/engine/kscripts.cpp index a7c0d87715..30a1fab71a 100644 --- a/engines/sci/engine/kscripts.cpp +++ b/engines/sci/engine/kscripts.cpp @@ -262,7 +262,10 @@ reg_t kScriptID(EngineState *s, int argc, reg_t *argv) { s->variables[VAR_GLOBAL][kGlobalVarSpeed] = make_reg(0, 6); } - return make_reg(scriptSeg, address); + reg_t addr; + addr.setSegment(scriptSeg); + addr.setOffset(address); + return addr; } reg_t kDisposeScript(EngineState *s, int argc, reg_t *argv) { |