aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorLars Skovlund2010-11-18 16:58:25 +0000
committerLars Skovlund2010-11-18 16:58:25 +0000
commit1621e7d5c0ea5aca51c72040fffd589f41573847 (patch)
treec64d05316c16040fecc11e89db772ad2b57bf7fa /engines/sci/engine
parenta008d1405582e1a25e5dea57b19d03899f44542d (diff)
downloadscummvm-rg350-1621e7d5c0ea5aca51c72040fffd589f41573847.tar.gz
scummvm-rg350-1621e7d5c0ea5aca51c72040fffd589f41573847.tar.bz2
scummvm-rg350-1621e7d5c0ea5aca51c72040fffd589f41573847.zip
Fix operator precedence problem
svn-id: r54324
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/script.cpp b/engines/sci/engine/script.cpp
index 424102a90d..aeeaf240fd 100644
--- a/engines/sci/engine/script.cpp
+++ b/engines/sci/engine/script.cpp
@@ -178,7 +178,7 @@ void Script::load(ResourceManager *resMan) {
_localsCount = READ_SCI11ENDIAN_UINT16(_buf + _localsOffset - 2);
} else if (getSciVersion() == SCI_VERSION_3) {
_localsCount = READ_LE_UINT16(_buf + 12);
- _exportTable = (const uint16 *) _buf + 22;
+ _exportTable = (const uint16 *) (_buf + 22);
_numExports = READ_LE_UINT16(_buf + 20);
// SCI3 local variables always start dword-aligned
if (_numExports % 2)