aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2010-07-18 20:19:14 +0000
committerMartin Kiewitz2010-07-18 20:19:14 +0000
commitdbc16076034d23181b4a2ea897afbf6b923208ee (patch)
tree309a09637089d9cc4ab3ff8e4d2b25aec59084a4 /engines
parent8893d4ef2307696a306ab2e643857b17d354228e (diff)
downloadscummvm-rg350-dbc16076034d23181b4a2ea897afbf6b923208ee.tar.gz
scummvm-rg350-dbc16076034d23181b4a2ea897afbf6b923208ee.tar.bz2
scummvm-rg350-dbc16076034d23181b4a2ea897afbf6b923208ee.zip
SCI: add script number to r51008 change
svn-id: r51009
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/script.cpp b/engines/sci/engine/script.cpp
index 42e1c54c90..049ea9247b 100644
--- a/engines/sci/engine/script.cpp
+++ b/engines/sci/engine/script.cpp
@@ -438,7 +438,7 @@ void Script::initialiseClasses(SegManager *segMan) {
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())
+ if (g_sci->getGameId() == GID_LSL3 && !g_sci->isDemo() && _nr == 500 && species == (int)segMan->classTableSize())
segMan->resizeClassTable(segMan->classTableSize() + 1);
if (species < 0 || species >= (int)segMan->classTableSize())