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
This commit is contained in:
Matthew Hoops 2010-07-27 02:46:06 +00:00
parent 280204bd12
commit 03fe34df73

View File

@ -168,6 +168,13 @@ Common::StringArray Kernel::checkStaticSelectorNames() {
names[274] = "syncTime"; names[274] = "syncTime";
names[275] = "syncCue"; 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 #ifdef ENABLE_SCI32