[Scummvm-git-logs] scummvm master -> 156d1f72217bcdeb5b19209ab2ad05d3a9e710b8

dreammaster dreammaster at scummvm.org
Thu Nov 10 04:07:16 CET 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
156d1f7221 TITANIC: Fix crashing entering lifts


Commit: 156d1f72217bcdeb5b19209ab2ad05d3a9e710b8
    https://github.com/scummvm/scummvm/commit/156d1f72217bcdeb5b19209ab2ad05d3a9e710b8
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2016-11-09T22:07:10-05:00

Commit Message:
TITANIC: Fix crashing entering lifts

Changed paths:
    engines/titanic/core/view_item.cpp



diff --git a/engines/titanic/core/view_item.cpp b/engines/titanic/core/view_item.cpp
index 9b20860..aa1ff71 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;





More information about the Scummvm-git-logs mailing list