diff --git a/engines/pink/objects/actors/lead_actor.cpp b/engines/pink/objects/actors/lead_actor.cpp index 0c59c2e8428..e05d50c16a1 100644 --- a/engines/pink/objects/actors/lead_actor.cpp +++ b/engines/pink/objects/actors/lead_actor.cpp @@ -381,9 +381,9 @@ Actor *LeadActor::getActorByPoint(const Common::Point point) { return _page->getGame()->getDirector()->getActorByPoint(point); } -void LeadActor::startInventory(bool fromSave) { - getInventoryMgr()->start(fromSave); - if (!fromSave) { +void LeadActor::startInventory(bool paused) { + getInventoryMgr()->start(paused); + if (!paused) { _isHaveItem = false; _stateCopy = _state; _state = kInventory; diff --git a/engines/pink/objects/inventory.cpp b/engines/pink/objects/inventory.cpp index bfbff3e6537..f81275938cc 100644 --- a/engines/pink/objects/inventory.cpp +++ b/engines/pink/objects/inventory.cpp @@ -98,7 +98,7 @@ void InventoryMgr::setItemOwner(const Common::String &owner, InventoryItem *item _item = item; } -bool InventoryMgr::start(bool playOpening) { +bool InventoryMgr::start(bool paused) { if (!_item) { _item = findInventoryItem(_lead->getName()); if (!_item) @@ -110,7 +110,7 @@ bool InventoryMgr::start(bool playOpening) { _rightArrow = _lead->getPage()->findActor(kInventoryRightArrowActor); _leftArrow = _lead->getPage()->findActor(kInventoryLeftArrowActor); - if (playOpening) { + if (!paused) { _window->setAction(kOpenAction); _state = kOpening; } diff --git a/engines/pink/objects/inventory.h b/engines/pink/objects/inventory.h index 836aa7f8a30..c9357fc62a6 100644 --- a/engines/pink/objects/inventory.h +++ b/engines/pink/objects/inventory.h @@ -59,7 +59,7 @@ public: void update(); void onClick(Common::Point point); - bool start(bool playOpening); + bool start(bool paused); void setLeadActor(LeadActor *lead) { _lead = lead; } InventoryItem* findInventoryItem(const Common::String &name);