Skip to content

Commit

Permalink
Fix spawn event
Browse files Browse the repository at this point in the history
  • Loading branch information
Shtrecker committed Oct 1, 2024
1 parent e4d0c3e commit a4a5729
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/xrGame/Inventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1253,10 +1253,11 @@ CInventoryItem *CInventory::GetItemFromInventory(LPCSTR caItemName)
return (0);
}


bool CInventory::CanTakeItem(CInventoryItem *inventory_item) const
{
VERIFY (inventory_item);
if (inventory_item == nullptr)
return false;

VERIFY (m_pOwner);

if (inventory_item->object().getDestroy()) return false;
Expand Down

0 comments on commit a4a5729

Please sign in to comment.