SCI: Fix SCI32 BE selector name count

This commit is contained in:
Matthew Hoops 2013-04-26 21:31:32 -04:00
parent f2ae99791f
commit 81f5a89093

View File

@ -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);