From abe6889bbe640c15e0fdf454d3867eb22869db5c Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Wed, 3 Aug 2016 20:07:13 +0200 Subject: MOHAWK: Remove the current card id from the Riven engine class --- engines/mohawk/riven_saveload.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/mohawk/riven_saveload.cpp') 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) -- cgit v1.2.3