[Scummvm-cvs-logs] SF.net SVN: scummvm: [28789] scummvm/trunk/engines/saga/animation.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sat Sep 1 18:32:01 CEST 2007


Revision: 28789
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28789&view=rev
Author:   thebluegr
Date:     2007-09-01 09:32:00 -0700 (Sat, 01 Sep 2007)

Log Message:
-----------
Fix the crash in the IHNM intro

Modified Paths:
--------------
    scummvm/trunk/engines/saga/animation.cpp

Modified: scummvm/trunk/engines/saga/animation.cpp
===================================================================
--- scummvm/trunk/engines/saga/animation.cpp	2007-09-01 15:03:44 UTC (rev 28788)
+++ scummvm/trunk/engines/saga/animation.cpp	2007-09-01 16:32:00 UTC (rev 28789)
@@ -388,7 +388,7 @@
 
 	// 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));


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list