diff options
-rw-r--r-- | engines/mohawk/myst_scripts_myst.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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() { |