[Scummvm-cvs-logs] SF.net SVN: scummvm:[51008] scummvm/trunk/engines/sci/engine/script.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Sun Jul 18 22:14:19 CEST 2010


Revision: 51008
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51008&view=rev
Author:   m_kiewitz
Date:     2010-07-18 20:14:18 +0000 (Sun, 18 Jul 2010)

Log Message:
-----------
SCI: add workaround for script 500 lsl3

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/script.cpp

Modified: scummvm/trunk/engines/sci/engine/script.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/script.cpp	2010-07-18 19:19:49 UTC (rev 51007)
+++ scummvm/trunk/engines/sci/engine/script.cpp	2010-07-18 20:14:18 UTC (rev 51008)
@@ -437,6 +437,9 @@
 			// WORKAROUND for an invalid species access in the demo of LSL2
 			if (g_sci->getGameId() == GID_LSL2 && g_sci->isDemo() && species == (int)segMan->classTableSize())
 				segMan->resizeClassTable(segMan->classTableSize() + 1);
+			// WORKAROUND for an invalid species access in LSL3 script 500
+			if (g_sci->getGameId() == GID_LSL3 && !g_sci->isDemo() && species == (int)segMan->classTableSize())
+				segMan->resizeClassTable(segMan->classTableSize() + 1);
 
 			if (species < 0 || species >= (int)segMan->classTableSize())
 				error("Invalid species %d(0x%x) not in interval [0,%d) while instantiating script %d\n",


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