mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 11:20:56 +00:00
PINK: fix pausing when click on panther with empty inventory
This commit is contained in:
parent
1af15bf46b
commit
64bb3baab8
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user