Skip to content

Commit

Permalink
SCI: Fix SCI32 BE selector name count
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hoops committed Apr 27, 2013
1 parent f2ae997 commit 81f5a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/sci/engine/kernel.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 81f5a89

Please sign in to comment.