SCI: fixing regression from one of the merges
svn-id: r50387
This commit is contained in:
parent
945297a599
commit
303dc06388
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ void script_uninstantiate_sci0(SegManager *segMan, int script_nr, SegmentId seg)
|
|||
|
||||
if ((objType == SCI_OBJ_OBJECT) || (objType == SCI_OBJ_CLASS)) { // object or class?
|
||||
reg.offset += 8; // magic offset (SCRIPT_OBJECT_MAGIC_OFFSET)
|
||||
int superclass = READ_SCI11ENDIAN_UINT16(scr->_buf + reg.offset + 2);
|
||||
int16 superclass = READ_SCI11ENDIAN_UINT16(scr->_buf + reg.offset + 2);
|
||||
|
||||
if (superclass >= 0) {
|
||||
int superclass_script = segMan->getClass(superclass).script;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue