diff options
author | Colin Snover | 2016-10-01 14:06:40 -0500 |
---|---|---|
committer | Colin Snover | 2016-10-01 14:07:26 -0500 |
commit | 084dfe9e039a555c722731c3a292a26a2757141d (patch) | |
tree | 6caa451f79570585dff1d474faa5b584bb8861f9 /engines/sci | |
parent | d527e75f321dab77d24d13d3355c6620a5d10404 (diff) | |
download | scummvm-rg350-084dfe9e039a555c722731c3a292a26a2757141d.tar.gz scummvm-rg350-084dfe9e039a555c722731c3a292a26a2757141d.tar.bz2 scummvm-rg350-084dfe9e039a555c722731c3a292a26a2757141d.zip |
SCI32: Use selector lookup in Torin script patch instead of magic numbers
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/engine/script_patches.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sci/engine/script_patches.cpp b/engines/sci/engine/script_patches.cpp index e643a0480d..2c54d2b78c 100644 --- a/engines/sci/engine/script_patches.cpp +++ b/engines/sci/engine/script_patches.cpp @@ -4600,16 +4600,16 @@ static const SciScriptPatcherEntry sq6Signatures[] = { // references are reg_ts, so this array needs to be created as an IDArray // instead static const uint16 torinInventItemSlotsSignature[] = { - 0x38, SIG_UINT16(0x8d), // pushi $8d (new) - 0x78, // push1 + 0x38, SIG_SELECTOR16(new), // pushi new + 0x78, // push1 SIG_MAGICDWORD, - 0x67, 0x2e, // pTos $2e (invSlotsTot) - 0x51, 0x0b, // class IntArray + 0x67, 0x2e, // pTos $2e (invSlotsTot) + 0x51, 0x0b, // class IntArray SIG_END }; static const uint16 torinInventItemSlotsPatch[] = { - PATCH_ADDTOOFFSET(+3), // pushi $8d (new) + PATCH_ADDTOOFFSET(+3), // pushi new PATCH_ADDTOOFFSET(+1), // push1 PATCH_ADDTOOFFSET(+2), // pTos $2e (invSlotsTot) 0x51, 0x0c, // class IDArray |