aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pink/objects')
-rw-r--r--engines/pink/objects/inventory.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/pink/objects/inventory.cpp b/engines/pink/objects/inventory.cpp
index f22925da33..b4c1f7db56 100644
--- a/engines/pink/objects/inventory.cpp
+++ b/engines/pink/objects/inventory.cpp
@@ -91,11 +91,10 @@ void InventoryMgr::setItemOwner(const Common::String &owner, InventoryItem *item
if (item == _item && _lead->getName() != owner)
_item = nullptr;
+ else if (_lead->getName() == owner)
+ _item = item;
item->_currentOwner = owner;
-
- if (_lead->getName() == owner)
- _item = item;
}
bool InventoryMgr::start(bool paused) {