aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMatthew Hoops2013-04-26 21:31:32 -0400
committerMatthew Hoops2013-04-26 21:31:32 -0400
commit81f5a89093f2923d372fe7a7ad06db7ed30e8731 (patch)
tree60a78cdccc0a91d4594a6e9ca72b9892d8ef971d /engines/sci
parentf2ae99791fc31031adad6fceb62dedaf5d6b35e5 (diff)
downloadscummvm-rg350-81f5a89093f2923d372fe7a7ad06db7ed30e8731.tar.gz
scummvm-rg350-81f5a89093f2923d372fe7a7ad06db7ed30e8731.tar.bz2
scummvm-rg350-81f5a89093f2923d372fe7a7ad06db7ed30e8731.zip
SCI: Fix SCI32 BE selector name count
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kernel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kernel.cpp b/engines/sci/engine/kernel.cpp
index 46051ef145..0d0bbe8882 100644
--- a/engines/sci/engine/kernel.cpp
+++ b/engines/sci/engine/kernel.cpp
@@ -132,7 +132,7 @@ void Kernel::loadSelectorNames() {
return;
}
- int count = isBE ? READ_BE_UINT16(r->data) : READ_LE_UINT16(r->data) + 1; // Counter is slightly off
+ int count = (isBE ? READ_BE_UINT16(r->data) : READ_LE_UINT16(r->data)) + 1; // Counter is slightly off
for (int i = 0; i < count; i++) {
int offset = isBE ? READ_BE_UINT16(r->data + 2 + i * 2) : READ_LE_UINT16(r->data + 2 + i * 2);