Correct bug in array loading from index.

A few changes/corrections for HE 7.2

svn-id: r14724
This commit is contained in:
Travis Howell 2004-08-24 05:04:14 +00:00
parent deeadc97fa
commit 07eb3f50f9
3 changed files with 27 additions and 18 deletions

View file

@ -983,6 +983,14 @@ int ScummEngine::readSoundResource(int type, int idx) {
free(ptr);
return 1;
} else if (basetag == MKID('Mac1')) {
_fileHandle.seek(-12, SEEK_CUR);
total_size = _fileHandle.readUint32BE();
_fileHandle.read(createResource(type, idx, total_size), total_size - 8);
return 1;
} else if (basetag == MKID('TALK')) {
debugC(DEBUG_SOUND, "Found base tag TALK in sound %d, size %d", idx, total_size);
debugC(DEBUG_SOUND, "It was at position %d", _fileHandle.pos());
_fileHandle.seek(-12, SEEK_CUR);
total_size = _fileHandle.readUint32BE();
_fileHandle.read(createResource(type, idx, total_size), total_size - 8);