Skip to content

Commit

Permalink
PINK: rework setItemOwner method
Browse files Browse the repository at this point in the history
  • Loading branch information
voltya authored and sev- committed Jun 28, 2018
1 parent c5062e0 commit 2d8b2be
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions engines/pink/objects/inventory.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 2d8b2be

Please sign in to comment.