SCI: add workaround for script 500 lsl3

svn-id: r51008
This commit is contained in:
Martin Kiewitz 2010-07-18 20:14:18 +00:00
parent fc1e5c8fae
commit 8893d4ef23

View file

@ -437,6 +437,9 @@ void Script::initialiseClasses(SegManager *segMan) {
// 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",