SCI: Fix SCI32 BE selector name count
This commit is contained in:
parent
f2ae99791f
commit
81f5a89093
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue