From f8026bf852c5033dfd8ae0763d6a6a18ebfb2d7a Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Mon, 29 Nov 2010 21:00:49 +0000 Subject: MOHAWK: Preinitialise saved card id for use when linking back to Myst from an other age. svn-id: r54636 --- engines/mohawk/myst_scripts_myst.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engines/mohawk/myst_scripts_myst.cpp b/engines/mohawk/myst_scripts_myst.cpp index 1b3d4c9c0f..8bcf4dbc1b 100644 --- a/engines/mohawk/myst_scripts_myst.cpp +++ b/engines/mohawk/myst_scripts_myst.cpp @@ -42,6 +42,11 @@ namespace Mohawk { MystScriptParser_Myst::MystScriptParser_Myst(MohawkEngine_Myst *vm) : MystScriptParser(vm) { setupOpcodes(); _invokingResource = NULL; + + // Card ID preinitialized by the engine for use by opcode 18 + // when linking back to Myst in the library + if (_vm->getCurStack() == kMystStack) + _savedCardId = 4329; } MystScriptParser_Myst::~MystScriptParser_Myst() { -- cgit v1.2.3