TITANIC: Fix crashing entering lifts

This commit is contained in:
Paul Gilbert 2016-11-09 22:07:10 -05:00
parent 7880b17676
commit 156d1f7221

View File

@ -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;