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) {
getInventoryMgr()->start(paused);
if (!getInventoryMgr()->start(paused))
return;
if (!paused) {
_isHaveItem = false;
_stateCopy = _state;

View File

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