aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/pink/objects/actors/lead_actor.cpp6
1 files 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;
}