[Scummvm-cvs-logs] scummvm master -> 81f5a89093f2923d372fe7a7ad06db7ed30e8731
clone2727
clone2727 at gmail.com
Sat Apr 27 03:33:42 CEST 2013
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
81f5a89093 SCI: Fix SCI32 BE selector name count
Commit: 81f5a89093f2923d372fe7a7ad06db7ed30e8731
https://github.com/scummvm/scummvm/commit/81f5a89093f2923d372fe7a7ad06db7ed30e8731
Author: Matthew Hoops (clone2727 at gmail.com)
Date: 2013-04-26T18:31:32-07:00
Commit Message:
SCI: Fix SCI32 BE selector name count
Changed paths:
engines/sci/engine/kernel.cpp
diff --git a/engines/sci/engine/kernel.cpp b/engines/sci/engine/kernel.cpp
index 46051ef..0d0bbe8 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);
More information about the Scummvm-git-logs
mailing list