diff options
author | Bastien Bouclet | 2016-08-03 20:07:13 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-03 08:50:10 +0200 |
commit | abe6889bbe640c15e0fdf454d3867eb22869db5c (patch) | |
tree | 670b1274c3210eaded25de5f3d84e009c7f10425 /engines/mohawk/riven_saveload.cpp | |
parent | 0aaa3760c25e37800f0fda6ef4771c2347d72f7c (diff) | |
download | scummvm-rg350-abe6889bbe640c15e0fdf454d3867eb22869db5c.tar.gz scummvm-rg350-abe6889bbe640c15e0fdf454d3867eb22869db5c.tar.bz2 scummvm-rg350-abe6889bbe640c15e0fdf454d3867eb22869db5c.zip |
MOHAWK: Remove the current card id from the Riven engine class
Diffstat (limited to 'engines/mohawk/riven_saveload.cpp')
-rw-r--r-- | engines/mohawk/riven_saveload.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/mohawk/riven_saveload.cpp b/engines/mohawk/riven_saveload.cpp index 755f87767d..766ad30c51 100644 --- a/engines/mohawk/riven_saveload.cpp +++ b/engines/mohawk/riven_saveload.cpp @@ -22,6 +22,7 @@ #include "mohawk/resource.h" #include "mohawk/riven.h" +#include "mohawk/riven_card.h" #include "mohawk/riven_saveload.h" #include "common/system.h" @@ -403,7 +404,7 @@ Common::Error RivenSaveLoad::saveGame(const int slot, const Common::String &desc // Convert class variables to variable numbers _vm->_vars["currentstackid"] = _vm->getCurStack(); - _vm->_vars["currentcardid"] = _vm->getCurCard(); + _vm->_vars["currentcardid"] = _vm->getCurCard()->getId(); Common::OutSaveFile *saveFile = _saveFileMan->openForSaving(filename); if (!saveFile) |