From d391c2f837199cfecb0c26c518bbf804d3da3d3c Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 18 Apr 2005 11:44:01 +0000 Subject: Adjust again, for sound header differences. svn-id: r17668 --- scumm/script_v72he.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'scumm/script_v72he.cpp') diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp index b20716e850..a60ed8abe5 100644 --- a/scumm/script_v72he.cpp +++ b/scumm/script_v72he.cpp @@ -2156,19 +2156,8 @@ void ScummEngine_v72he::o72_writeINI() { } void ScummEngine_v72he::o72_getResourceSize() { - int resid, size; - - resid = pop(); - if (resid > _numSounds) { - int offs; - _sound->getHEMusicDetails(resid, offs, size); - push(size); - } else { - const byte *ptr = getResourceAddress(rtSound, resid); - assert(ptr); - size = READ_BE_UINT32(ptr + 4) - 40; - push(size); - } + int resid = pop(); + push(getSoundResourceSize(resid)); } void ScummEngine_v72he::o72_setFilePath() { -- cgit v1.2.3