MOHAWK: Preinitialise saved card id for use when linking back to Myst from an other age.

svn-id: r54636
This commit is contained in:
Bastien Bouclet
2010-11-29 21:00:49 +00:00
parent 836aab9968
commit f8026bf852
+5
View File
@@ -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() {