From 8637cfc617d57bb9ea1e3f81f16c7b4f9f5b38ee Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 19 Dec 2016 08:30:19 -0500 Subject: TITANIC: Fix CMouseCursor assert after trying to drag perch --- engines/titanic/input_handler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/titanic/input_handler.cpp') diff --git a/engines/titanic/input_handler.cpp b/engines/titanic/input_handler.cpp index e4c60d24e9..ba2c08ed89 100644 --- a/engines/titanic/input_handler.cpp +++ b/engines/titanic/input_handler.cpp @@ -100,8 +100,8 @@ void CInputHandler::processMessage(CMessage *msg) { CMouseDragMoveMsg moveMsg(_mousePos); moveMsg.execute(_dragItem); } - } else { - if (mouseMsg->isButtonUpMsg() && _dragItem) { + } else if (mouseMsg->isButtonUpMsg()) { + if (_dragItem) { // Mouse drag ended CGameObject *target = dragEnd(_mousePos, _dragItem); CMouseDragEndMsg endMsg(_mousePos, target); -- cgit v1.2.3