diff options
author | Bastien Bouclet | 2010-11-29 21:00:49 +0000 |
---|---|---|
committer | Bastien Bouclet | 2010-11-29 21:00:49 +0000 |
commit | f8026bf852c5033dfd8ae0763d6a6a18ebfb2d7a (patch) | |
tree | 30c34204047baafb3f979294dc0ba44af20f1f86 /engines | |
parent | 836aab996867612502854a6d0406841f47409f6e (diff) | |
download | scummvm-rg350-f8026bf852c5033dfd8ae0763d6a6a18ebfb2d7a.tar.gz scummvm-rg350-f8026bf852c5033dfd8ae0763d6a6a18ebfb2d7a.tar.bz2 scummvm-rg350-f8026bf852c5033dfd8ae0763d6a6a18ebfb2d7a.zip |
MOHAWK: Preinitialise saved card id for use when linking back to Myst from an other age.
svn-id: r54636
Diffstat (limited to 'engines')
-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() { |