SCI: add workaround for script 500 lsl3
svn-id: r51008
This commit is contained in:
parent
fc1e5c8fae
commit
8893d4ef23
1 changed files with 3 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue