seems monkeyega & monkeyvga have byte values for the object name offset, too
svn-id: r8571
This commit is contained in:
parent
cafe61b768
commit
fc8e12444a
2 changed files with 4 additions and 10 deletions
|
@ -1917,15 +1917,12 @@ void Scumm_v5::o5_setObjectName() {
|
|||
}
|
||||
|
||||
if (_features & GF_SMALL_HEADER) {
|
||||
int offset = 0;
|
||||
byte offset = 0;
|
||||
|
||||
if (_features & GF_OLD_BUNDLE)
|
||||
offset = *(objptr + 16);
|
||||
else if (_version == 3)
|
||||
offset = *(objptr + 18);
|
||||
else
|
||||
// FIXME: is this really correct?
|
||||
offset = READ_LE_UINT16(objptr + 18);
|
||||
offset = *(objptr + 18);
|
||||
|
||||
size = READ_LE_UINT16(objptr) - offset;
|
||||
name = objptr + offset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue