From 11b5865b48996f3ff9a16c719059f25b7119b173 Mon Sep 17 00:00:00 2001 From: whiterandrek Date: Thu, 31 May 2018 23:05:45 +0300 Subject: PINK: fix loading inventory save --- engines/pink/objects/actors/lead_actor.cpp | 12 +++++++++++- engines/pink/objects/inventory.cpp | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'engines/pink') diff --git a/engines/pink/objects/actors/lead_actor.cpp b/engines/pink/objects/actors/lead_actor.cpp index 9279871f30..90de9a1d8f 100644 --- a/engines/pink/objects/actors/lead_actor.cpp +++ b/engines/pink/objects/actors/lead_actor.cpp @@ -146,7 +146,17 @@ void LeadActor::start(bool isHandler) { _state = kInDialog1; _nextState = kReady; } - forceUpdateCursor(); + + switch (_state) { + case kInventory: + _page->getModule()->getInventoryMgr()->start(0); + _page->pause(); + break; + case kPDA: + + default: + forceUpdateCursor(); + } } void LeadActor::onMouseMove(Common::Point point) { diff --git a/engines/pink/objects/inventory.cpp b/engines/pink/objects/inventory.cpp index 3ae4effd0a..1b74f4dca8 100644 --- a/engines/pink/objects/inventory.cpp +++ b/engines/pink/objects/inventory.cpp @@ -221,7 +221,7 @@ void InventoryMgr::saveState(Archive &archive) { } if (_item) - archive.writeString(_item->_currentOwner); + archive.writeString(_item->getName()); else archive.writeString(Common::String()); } -- cgit v1.2.3