aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMatthew Hoops2010-07-27 02:46:06 +0000
committerMatthew Hoops2010-07-27 02:46:06 +0000
commit03fe34df73286046fbb16d9ebbfc6580e206d914 (patch)
tree97476000ed0c3b948fb67da9decba04fd5e2e588 /engines/sci
parent280204bd12852109ac3202659c2c1b71a922a6c8 (diff)
downloadscummvm-rg350-03fe34df73286046fbb16d9ebbfc6580e206d914.tar.gz
scummvm-rg350-03fe34df73286046fbb16d9ebbfc6580e206d914.tar.bz2
scummvm-rg350-03fe34df73286046fbb16d9ebbfc6580e206d914.zip
SCI: Fix bug #3035033 - ISLANDBRAIN demo: Crash
The demo needs the "init" selector so that the workaround for the full game will also work in the demo. svn-id: r51343
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/static_selectors.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/sci/engine/static_selectors.cpp b/engines/sci/engine/static_selectors.cpp
index 85089e74c8..c3eb7d17b9 100644
--- a/engines/sci/engine/static_selectors.cpp
+++ b/engines/sci/engine/static_selectors.cpp
@@ -168,6 +168,13 @@ Common::StringArray Kernel::checkStaticSelectorNames() {
names[274] = "syncTime";
names[275] = "syncCue";
+ } else if (g_sci->getGameId() == GID_ISLANDBRAIN) {
+ // The demo of Island of Dr. Brain needs the init selector set to match up with the full
+ // game's workaround.
+ if (names.size() < 111)
+ names.resize(111);
+
+ names[110] = "init";
}
#ifdef ENABLE_SCI32