diff options
author | Paul Gilbert | 2016-12-19 08:30:19 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-12-19 08:30:19 -0500 |
commit | 8637cfc617d57bb9ea1e3f81f16c7b4f9f5b38ee (patch) | |
tree | 55cffe67193b7498f94fa6f12499344312f7b30d /engines/titanic/input_handler.cpp | |
parent | dd781df71769f9b369349ec6c94862387998dce6 (diff) | |
download | scummvm-rg350-8637cfc617d57bb9ea1e3f81f16c7b4f9f5b38ee.tar.gz scummvm-rg350-8637cfc617d57bb9ea1e3f81f16c7b4f9f5b38ee.tar.bz2 scummvm-rg350-8637cfc617d57bb9ea1e3f81f16c7b4f9f5b38ee.zip |
TITANIC: Fix CMouseCursor assert after trying to drag perch
Diffstat (limited to 'engines/titanic/input_handler.cpp')
-rw-r--r-- | engines/titanic/input_handler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |