mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 12:48:16 +00:00
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:
parent
b45b26b54c
commit
ecc446da84
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user