Navigation Menu

Skip to content

Commit

Permalink
SCI32: Fix SCI3 object names > 0xFFFF
Browse files Browse the repository at this point in the history
  • Loading branch information
csnover committed May 26, 2017
1 parent ad1cc61 commit d0040dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/sci/engine/object.cpp
Expand Up @@ -106,7 +106,8 @@ void Object::init(const Script &owner, reg_t obj_pos, bool initVariables) {
const uint32 nameOffset = _propertyOffsetsSci3[0];
const uint32 relocOffset = owner.getRelocationOffset(nameOffset);
if (relocOffset != kNoRelocation) {
_name = make_reg(obj_pos.getSegment(), relocOffset + buf.getUint16SEAt(nameOffset));
_name.setSegment(obj_pos.getSegment());
_name.setOffset(relocOffset + buf.getUint16SEAt(nameOffset));
}
#endif
}
Expand Down

0 comments on commit d0040dc

Please sign in to comment.