mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-09 04:16:34 +00:00
SCI: Fix SCI32 BE selector name count
This commit is contained in:
parent
f2ae99791f
commit
81f5a89093
@ -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…
x
Reference in New Issue
Block a user