diff options
author | Andrei Prykhodko | 2018-08-15 19:10:33 +0300 |
---|---|---|
committer | Andrei Prykhodko | 2018-08-15 19:11:24 +0300 |
commit | 2a6222be1752cabd0fc1d0641a3d34cd896a0784 (patch) | |
tree | c206f86bdc73bcc97c2f84b027752a0141464117 | |
parent | b4ab89a749c28085ba045c75f033ada1c75f023d (diff) | |
download | scummvm-rg350-2a6222be1752cabd0fc1d0641a3d34cd896a0784.tar.gz scummvm-rg350-2a6222be1752cabd0fc1d0641a3d34cd896a0784.tar.bz2 scummvm-rg350-2a6222be1752cabd0fc1d0641a3d34cd896a0784.zip |
PINK: fixed clicking on leadActor in moving state with item
-rw-r--r-- | engines/pink/objects/actors/lead_actor.cpp | 4 |
1 files 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(); |