aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2016-11-09 22:07:10 -0500
committerPaul Gilbert2016-11-09 22:07:10 -0500
commit156d1f72217bcdeb5b19209ab2ad05d3a9e710b8 (patch)
tree65e0f0596af7002179385bdcb98bdffc0b3a6f4d /engines
parent7880b1767636a4cea1e5f1a918e083f784b44674 (diff)
downloadscummvm-rg350-156d1f72217bcdeb5b19209ab2ad05d3a9e710b8.tar.gz
scummvm-rg350-156d1f72217bcdeb5b19209ab2ad05d3a9e710b8.tar.bz2
scummvm-rg350-156d1f72217bcdeb5b19209ab2ad05d3a9e710b8.zip
TITANIC: Fix crashing entering lifts
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/core/view_item.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/core/view_item.cpp b/engines/titanic/core/view_item.cpp
index 9b20860a46..aa1ff7108e 100644
--- a/engines/titanic/core/view_item.cpp
+++ b/engines/titanic/core/view_item.cpp
@@ -270,7 +270,7 @@ bool CViewItem::handleMouseMsg(CMouseMsg *msg, bool flag) {
if (gameObjects.size() == 0)
return false;
- for (int idx = (int)gameObjects.size() - 1; idx >= 0; ++idx) {
+ for (int idx = (int)gameObjects.size() - 1; idx >= 0; --idx) {
if (gameObjects[idx]->_cursorId != CURSOR_IGNORE) {
CScreenManager::_screenManagerPtr->_mouseCursor->setCursor(gameObjects[idx]->_cursorId);
break;