mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 01:07:22 +00:00
KYRA: (LOL) - fix sound index read on BE platforms (bug no. 12987)
regression from 3ae1d92f
This commit is contained in:
parent
93746e702f
commit
ea386eda87
@ -1839,10 +1839,11 @@ int LoLEngine::olol_assignCustomSfx(EMCState *script) {
|
||||
if (!c || i > 250)
|
||||
return 0;
|
||||
|
||||
uint16 t = READ_LE_UINT16(&_ingameSoundIndex[i << 1]);
|
||||
uint16 t = _ingameSoundIndex[i << 1];
|
||||
if (t == 0xFFFF)
|
||||
return 0;
|
||||
|
||||
assert(t < _ingameSoundListSize);
|
||||
_ingameSoundList[t] = c;
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user