From 03fe34df73286046fbb16d9ebbfc6580e206d914 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Tue, 27 Jul 2010 02:46:06 +0000 Subject: [PATCH] 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 --- engines/sci/engine/static_selectors.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engines/sci/engine/static_selectors.cpp b/engines/sci/engine/static_selectors.cpp index 85089e74c85..c3eb7d17b94 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