MOHAWK: Update the card and stack variables when entering new locations

This commit is contained in:
Bastien Bouclet 2016-08-07 11:39:12 +02:00 committed by Eugene Sandulenko
parent 05bed84a85
commit 9926475937
5 changed files with 12 additions and 4 deletions

View file

@ -403,10 +403,6 @@ Common::Error RivenSaveLoad::saveGame(const int slot, const Common::String &desc
Common::String filename = buildSaveFilename(slot);
// Convert class variables to variable numbers
_vm->_vars["currentstackid"] = _vm->getStack()->getId();
_vm->_vars["currentcardid"] = _vm->getCard()->getId();
Common::OutSaveFile *saveFile = _saveFileMan->openForSaving(filename);
if (!saveFile)
return Common::kWritingFailed;