diff options
author | Colin Snover | 2017-02-06 19:59:35 -0600 |
---|---|---|
committer | Colin Snover | 2017-04-22 18:53:40 -0500 |
commit | ecc446da841c2dc1fba0c36117159d031302ea85 (patch) | |
tree | 4a2c75c5f5663dddc64f3a375120c976e0bce18f /engines | |
parent | b45b26b54c3fb7896ad784630de743412fd98c93 (diff) | |
download | scummvm-rg350-ecc446da841c2dc1fba0c36117159d031302ea85.tar.gz scummvm-rg350-ecc446da841c2dc1fba0c36117159d031302ea85.tar.bz2 scummvm-rg350-ecc446da841c2dc1fba0c36117159d031302ea85.zip |
SCI: Accept 32-bit values to reg_t::incOffset
This fixes bad variable relocation in Phant2 causing the game to
crash when reading object names.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/vm_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/vm_types.h b/engines/sci/engine/vm_types.h index 734f4d3101..c3922b2bbb 100644 --- a/engines/sci/engine/vm_types.h +++ b/engines/sci/engine/vm_types.h @@ -46,7 +46,7 @@ struct reg_t { uint32 getOffset() const; void setOffset(uint32 offset); - inline void incOffset(int16 offset) { + inline void incOffset(int32 offset) { setOffset(getOffset() + offset); } |