From 07d63b482a2adaa6774ae1b2ab76ef9853bfe0a3 Mon Sep 17 00:00:00 2001 From: Matthew Duggan Date: Fri, 31 Jul 2020 16:48:09 +0900 Subject: [PATCH] ULTIMA8: Correct offsets of sound index --- engines/ultima/ultima8/audio/sound_flex.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/engines/ultima/ultima8/audio/sound_flex.cpp b/engines/ultima/ultima8/audio/sound_flex.cpp index 3e35c957091..116281670ab 100644 --- a/engines/ultima/ultima8/audio/sound_flex.cpp +++ b/engines/ultima/ultima8/audio/sound_flex.cpp @@ -38,6 +38,7 @@ SoundFlex::SoundFlex(Common::SeekableReadStream *rs) : Archive(rs), _samples(nul Common::MemoryReadStream st(buf, size); + _index.push_back(SoundFlexEntry("")); if (buf[0] == 0xFF) { // Crusader flex has an index in the first object with the format: // [00 or FF] [ 3 bytes, often 'oB0' or 'pB0' ] [ null-terminated name ]