aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2007-09-01 16:32:00 +0000
committerFilippos Karapetis2007-09-01 16:32:00 +0000
commitdb8b8a0c5fe9e3fc436818a1b5eaf02a133bc7a4 (patch)
tree546436fa3983fd167ff5fa80878e0e008f21b1b2 /engines
parent2d729927c59f6a380a6671b21d5809ff321467da (diff)
downloadscummvm-rg350-db8b8a0c5fe9e3fc436818a1b5eaf02a133bc7a4.tar.gz
scummvm-rg350-db8b8a0c5fe9e3fc436818a1b5eaf02a133bc7a4.tar.bz2
scummvm-rg350-db8b8a0c5fe9e3fc436818a1b5eaf02a133bc7a4.zip
Fix the crash in the IHNM intro
svn-id: r28789
Diffstat (limited to 'engines')
-rw-r--r--engines/saga/animation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/saga/animation.cpp b/engines/saga/animation.cpp
index 64e8b0a9c1..2e352c0064 100644
--- a/engines/saga/animation.cpp
+++ b/engines/saga/animation.cpp
@@ -388,7 +388,7 @@ void Anim::load(uint16 animId, const byte *animResourceData, size_t animResource
// WORKAROUND: Cutaway with background resource ID 37 (loaded as cutaway #4) is ending credits.
// For some reason it has wrong number of frames specified in its header. So we calculate it here:
- if (animId > MAX_ANIMATIONS && _cutawayListLength > 4 && _cutawayList[4].backgroundResourceId == 37)
+ if (animId > MAX_ANIMATIONS && _cutawayListLength > 4 && _cutawayList[4].backgroundResourceId == 37 && anim->maxFrame == 143)
anim->maxFrame = fillFrameOffsets(anim, false);
anim->frameOffsets = (size_t *)malloc((anim->maxFrame + 1) * sizeof(*anim->frameOffsets));