From 8893d4ef2307696a306ab2e643857b17d354228e Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 18 Jul 2010 20:14:18 +0000 Subject: SCI: add workaround for script 500 lsl3 svn-id: r51008 --- engines/sci/engine/script.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/sci/engine') diff --git a/engines/sci/engine/script.cpp b/engines/sci/engine/script.cpp index a293f81d2f..42e1c54c90 100644 --- a/engines/sci/engine/script.cpp +++ b/engines/sci/engine/script.cpp @@ -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", -- cgit v1.2.3