Skip to content

Commit

Permalink
GetSlot is not a member of CInventoryItem Error. Maybe dead code?
Browse files Browse the repository at this point in the history
  • Loading branch information
intorr committed Dec 8, 2017
1 parent e647fab commit c914177
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/xrGame/Inventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,11 @@ bool CInventory::Slot(u16 slot_id, PIItem pIItem, bool bNotActivate, bool strict

if (!strict_placement && !CanPutInSlot(pIItem, slot_id))
{
#ifdef _DEBUG
Msg("there is item %s[%d,%x] in slot %d[%d,%x]", ItemFromSlot(pIItem->GetSlot())->object().cName().c_str(),
ItemFromSlot(pIItem->GetSlot())->object().ID(), ItemFromSlot(pIItem->GetSlot()), pIItem->GetSlot(),
pIItem->object().ID(), pIItem);
#endif
//#ifdef _DEBUG
//Msg("there is item %s[%d,%x] in slot %d[%d,%x]", ItemFromSlot(pIItem->GetSlot())->object().cName().c_str(),
// ItemFromSlot(pIItem->GetSlot())->object().ID(), ItemFromSlot(pIItem->GetSlot()), pIItem->GetSlot(),
// pIItem->object().ID(), pIItem);
//#endif
//. if(m_slots[pIItem->GetSlot()].m_pIItem == pIItem && !bNotActivate )
//. Activate(pIItem->GetSlot());

Expand Down

0 comments on commit c914177

Please sign in to comment.