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.
This commit is contained in:
Colin Snover 2017-02-06 19:59:35 -06:00
parent b45b26b54c
commit ecc446da84

View File

@ -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);
}