diff options
Diffstat (limited to 'scumm/script_v72he.cpp')
-rw-r--r-- | scumm/script_v72he.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp index f69587084b..b20716e850 100644 --- a/scumm/script_v72he.cpp +++ b/scumm/script_v72he.cpp @@ -2163,13 +2163,12 @@ void ScummEngine_v72he::o72_getResourceSize() { int offs; _sound->getHEMusicDetails(resid, offs, size); push(size); - return; + } else { + const byte *ptr = getResourceAddress(rtSound, resid); + assert(ptr); + size = READ_BE_UINT32(ptr + 4) - 40; + push(size); } - - const byte *ptr = getResourceAddress(rtSound, resid); - assert(ptr); - size = getResourceDataSize(ptr); - push(size); } void ScummEngine_v72he::o72_setFilePath() { |