mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 20:59:00 +00:00
TITANIC: Fix crashing entering lifts
This commit is contained in:
parent
7880b17676
commit
156d1f7221
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user