Correct bug in array loading from index.
A few changes/corrections for HE 7.2 svn-id: r14724
This commit is contained in:
parent
deeadc97fa
commit
07eb3f50f9
3 changed files with 27 additions and 18 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue