diff options
author | Matthew Hoops | 2013-04-26 21:31:32 -0400 |
---|---|---|
committer | Matthew Hoops | 2013-04-26 21:31:32 -0400 |
commit | 81f5a89093f2923d372fe7a7ad06db7ed30e8731 (patch) | |
tree | 60a78cdccc0a91d4594a6e9ca72b9892d8ef971d /engines/sci | |
parent | f2ae99791fc31031adad6fceb62dedaf5d6b35e5 (diff) | |
download | scummvm-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.cpp | 2 |
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); |