Permalink
Browse files

FULLPIPE: Fix bug #9672: "Several inventory items highlighted at the …

…same time"
  • Loading branch information...
sev- committed Dec 1, 2017
1 parent 58cbd45 commit a08ebc2d63b83b24089d412f78bf7f5fba9c1d55
Showing with 4 additions and 2 deletions.
  1. +4 −2 engines/fullpipe/inventory.cpp
@@ -465,6 +465,8 @@ int Inventory2::getHoveredItem(Common::Point *point) {
if (!_isInventoryOut)
return 0;
int res = 0;
for (uint i = 0; i < _inventoryIcons.size(); i++) {
InventoryIcon &icn = _inventoryIcons[i];
if (selId ||
@@ -475,11 +477,11 @@ int Inventory2::getHoveredItem(Common::Point *point) {
icn.isMouseHover = false;
} else {
icn.isMouseHover = true;
return icn.inventoryItemId;
res = icn.inventoryItemId;
}
}
return 0;
return res;
}
void Inventory2::clear() {

0 comments on commit a08ebc2

Please sign in to comment.