diff options
author | Martin Kiewitz | 2010-06-27 18:41:07 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-06-27 18:41:07 +0000 |
commit | 303dc063883dab2dfe30b44d9fad9fe8e3948ec5 (patch) | |
tree | 30a89489c2af20c34f247a320badd08fc94072cd /engines/sci/engine/script.cpp | |
parent | 945297a599c8e3274d5f4faf64379049e60520b0 (diff) | |
download | scummvm-rg350-303dc063883dab2dfe30b44d9fad9fe8e3948ec5.tar.gz scummvm-rg350-303dc063883dab2dfe30b44d9fad9fe8e3948ec5.tar.bz2 scummvm-rg350-303dc063883dab2dfe30b44d9fad9fe8e3948ec5.zip |
SCI: fixing regression from one of the merges
svn-id: r50387
Diffstat (limited to 'engines/sci/engine/script.cpp')
-rw-r--r-- | engines/sci/engine/script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/script.cpp b/engines/sci/engine/script.cpp index b3fbafb355..03234bea1d 100644 --- a/engines/sci/engine/script.cpp +++ b/engines/sci/engine/script.cpp @@ -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; |