diff options
Diffstat (limited to 'engines/kyra/sound/drivers')
-rw-r--r-- | engines/kyra/sound/drivers/audiomaster2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/sound/drivers/audiomaster2.cpp b/engines/kyra/sound/drivers/audiomaster2.cpp index 404bb8468d..3ade175931 100644 --- a/engines/kyra/sound/drivers/audiomaster2.cpp +++ b/engines/kyra/sound/drivers/audiomaster2.cpp @@ -830,7 +830,7 @@ void AudioMaster2ResourceManager::loadResourceFile(Common::SeekableReadStream *d AudioMaster2IFFLoader loader(data, this); Common::Functor1Mem<Common::IFFChunk&, bool, AudioMaster2IFFLoader> cb(&loader, &AudioMaster2IFFLoader::loadChunk); loader.parse(cb); - } while (data->pos() < data->size()); + } while (data->pos() + 8 < data->size()); } void AudioMaster2ResourceManager::initResource(SoundResource *resource) { |