diff options
author | Filippos Karapetis | 2010-06-14 13:13:02 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-06-14 13:13:02 +0000 |
commit | 2a78b8279930212337c446948cc9a2943d685c94 (patch) | |
tree | b24dfc81767e0fe6fd80215588d6f44a738b2aa9 /engines/sci/engine/segment.cpp | |
parent | cd77cb96fc85ba2f681337630c4374ce0565927f (diff) | |
download | scummvm-rg350-2a78b8279930212337c446948cc9a2943d685c94.tar.gz scummvm-rg350-2a78b8279930212337c446948cc9a2943d685c94.tar.bz2 scummvm-rg350-2a78b8279930212337c446948cc9a2943d685c94.zip |
Fixed a bug with commit #49640
svn-id: r49650
Diffstat (limited to 'engines/sci/engine/segment.cpp')
-rw-r--r-- | engines/sci/engine/segment.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/segment.cpp b/engines/sci/engine/segment.cpp index c32823a7c2..c5afe57eea 100644 --- a/engines/sci/engine/segment.cpp +++ b/engines/sci/engine/segment.cpp @@ -196,12 +196,12 @@ void Script::load(ResourceManager *resMan) { _numSynonyms = 0; if (getSciVersion() >= SCI_VERSION_1_1) { - if (READ_LE_UINT16(_buf + 1 + 5) > 0) { + if (READ_LE_UINT16(_buf + 1 + 5) > 0) { // does the script have an export table? _exportTable = (const uint16 *)(_buf + 1 + 5 + 2); _numExports = READ_SCI11ENDIAN_UINT16(_exportTable - 1); - _localsOffset = _scriptSize + 4; - _localsCount = READ_SCI11ENDIAN_UINT16(_buf + _localsOffset - 2); } + _localsOffset = _scriptSize + 4; + _localsCount = READ_SCI11ENDIAN_UINT16(_buf + _localsOffset - 2); } else { _exportTable = (const uint16 *)findBlock(SCI_OBJ_EXPORTS); if (_exportTable) { |