Skip to content

Commit c914177

Browse files
committed
GetSlot is not a member of CInventoryItem Error. Maybe dead code?
1 parent e647fab commit c914177

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/xrGame/Inventory.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,11 @@ bool CInventory::Slot(u16 slot_id, PIItem pIItem, bool bNotActivate, bool strict
316316

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

0 commit comments

Comments
 (0)