From 2a6222be1752cabd0fc1d0641a3d34cd896a0784 Mon Sep 17 00:00:00 2001 From: Andrei Prykhodko Date: Wed, 15 Aug 2018 19:10:33 +0300 Subject: PINK: fixed clicking on leadActor in moving state with item --- engines/pink/objects/actors/lead_actor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/pink/objects/actors/lead_actor.cpp b/engines/pink/objects/actors/lead_actor.cpp index dc36ffcc50..6165a35008 100644 --- a/engines/pink/objects/actors/lead_actor.cpp +++ b/engines/pink/objects/actors/lead_actor.cpp @@ -283,9 +283,9 @@ void LeadActor::onMouseOver(const Common::Point point, CursorMgr *mgr) { void LeadActor::onLeftClickMessage() { if (_isHaveItem) { - assert(_state != kMoving); _isHaveItem = false; - _nextState = kUndefined; + _nextState = _state != kMoving ? kUndefined : kReady; + forceUpdateCursor(); } else { if (_state == kMoving) cancelInteraction(); -- cgit v1.2.3