PINK: fix pausing when click on panther with empty inventory

This commit is contained in:
whiterandrek 2018-06-13 20:30:55 +03:00 committed by Eugene Sandulenko
parent 1af15bf46b
commit 64bb3baab8
2 changed files with 5 additions and 6 deletions

View File

@ -391,7 +391,9 @@ Actor *LeadActor::getActorByPoint(const Common::Point point) {
} }
void LeadActor::startInventory(bool paused) { void LeadActor::startInventory(bool paused) {
getInventoryMgr()->start(paused); if (!getInventoryMgr()->start(paused))
return;
if (!paused) { if (!paused) {
_isHaveItem = false; _isHaveItem = false;
_stateCopy = _state; _stateCopy = _state;

View File

@ -99,11 +99,8 @@ void InventoryMgr::setItemOwner(const Common::String &owner, InventoryItem *item
} }
bool InventoryMgr::start(bool paused) { bool InventoryMgr::start(bool paused) {
if (!_item) { if (!isPinkOwnsAnyItems())
_item = findInventoryItem(_lead->getName()); return false;
if (!_item)
return false;
}
_window = _lead->getPage()->findActor(kInventoryWindowActor); _window = _lead->getPage()->findActor(kInventoryWindowActor);
_itemActor = _lead->getPage()->findActor(kInventoryItemActor); _itemActor = _lead->getPage()->findActor(kInventoryItemActor);