From 9cfa4970a24aea17530ad567905e8e38d207c951 Mon Sep 17 00:00:00 2001 From: whiterandrek Date: Sat, 12 May 2018 19:20:21 +0300 Subject: PINK: fixed choosing item after getting it from click using other item --- engines/pink/objects/actors/lead_actor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/pink/objects/actors/lead_actor.cpp b/engines/pink/objects/actors/lead_actor.cpp index ddc4052479..cb87a24107 100644 --- a/engines/pink/objects/actors/lead_actor.cpp +++ b/engines/pink/objects/actors/lead_actor.cpp @@ -249,10 +249,10 @@ bool LeadActor::sendUseClickMessage(SupportingActor *actor) { InventoryMgr *mgr = _page->getModule()->getInventoryMgr(); _nextState = _state != kPlayingVideo ? kReady : kPlayingVideo; _state = kInDialog1; + InventoryItem *item = mgr->getCurrentItem(); actor->onUseClickMessage(mgr->getCurrentItem(), mgr); - if (mgr->getCurrentItem() == nullptr - || mgr->getCurrentItem()->getCurrentOwner() != this->_name) - _isHaveItem = false; + if (item->getCurrentOwner() != this->_name) + _isHaveItem = false; return true; } -- cgit v1.2.3