From 3ae1d92f179d7062bb3291eb69748be060a046f3 Mon Sep 17 00:00:00 2001 From: athrxx Date: Sun, 28 Oct 2018 15:45:55 +0100 Subject: KYRA: (LOL) - clean up sound map data formatting This is a followup to the fix for bug #10665 (Urbish mines lobster having an invalid sound track number and causing invalid memory access). --- engines/kyra/staticres_lol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/kyra/staticres_lol.cpp') diff --git a/engines/kyra/staticres_lol.cpp b/engines/kyra/staticres_lol.cpp index c40b4a0c7d..e8d2a4ce70 100644 --- a/engines/kyra/staticres_lol.cpp +++ b/engines/kyra/staticres_lol.cpp @@ -255,7 +255,7 @@ void LoLEngine::initStaticResource() { int tempSize; _pakFileList = _staticres->loadStrings(kLoLIngamePakFiles, _pakFileListSize); _charDefaults = _staticres->loadCharData(kLoLCharacterDefs, _charDefaultsSize); - _ingameSoundIndex = (const uint16 *)_staticres->loadRawData(kLoLIngameSfxIndex, _ingameSoundIndexSize); + _ingameSoundIndex = (const int16 *)_staticres->loadRawDataBe16(kLoLIngameSfxIndex, _ingameSoundIndexSize); _musicTrackMap = _staticres->loadRawData(kLoLMusicTrackMap, tempSize); _ingameGMSoundIndex = _staticres->loadRawData(kLoLIngameGMSfxIndex, _ingameGMSoundIndexSize); _ingameMT32SoundIndex = _staticres->loadRawData(kLoLIngameMT32SfxIndex, _ingameMT32SoundIndexSize); -- cgit v1.2.3