From ff9b897d8c6cd2bfcd0ca260977004470d92e026 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 24 Aug 2010 14:54:16 +0000 Subject: SCI: Define xLast/yLast for LB2 floppy (which has no selector vocabulary), since they're used inside kDoBresen() svn-id: r52343 --- engines/sci/engine/static_selectors.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'engines') diff --git a/engines/sci/engine/static_selectors.cpp b/engines/sci/engine/static_selectors.cpp index f5e460969b..b65903eb82 100644 --- a/engines/sci/engine/static_selectors.cpp +++ b/engines/sci/engine/static_selectors.cpp @@ -177,13 +177,16 @@ Common::StringArray Kernel::checkStaticSelectorNames() { names[110] = "init"; } else if (g_sci->getGameId() == GID_LAURABOW2) { // The floppy of version needs the open and changeState selectors set to match up with the - // CD version's workarounds - bugs #3035694, #3036291 and #3041257 - if (names.size() < 190) - names.resize(190); + // CD version's workarounds - bugs #3035694, #3036291 and #3041257. Also, xLast and yLast + // are set, since they're used inside kDoBresen() + if (names.size() < 251) + names.resize(251); names[110] = "init"; names[144] = "changeState"; names[189] = "open"; + names[249] = "xLast"; + names[250] = "yLast"; } #ifdef ENABLE_SCI32 -- cgit v1.2.3