From 8d01148b797f66af457434284b3a41bd18b86098 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 18 Apr 2005 11:19:54 +0000 Subject: Sound size should only include sound data. svn-id: r17667 --- scumm/script_v72he.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'scumm/script_v72he.cpp') 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() { -- cgit v1.2.3