From 03fe34df73286046fbb16d9ebbfc6580e206d914 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Tue, 27 Jul 2010 02:46:06 +0000 Subject: 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(+) (limited to 'engines/sci') 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 -- cgit v1.2.3