#ifndef DEBUG_ALLOC
void ITEM_MANAGER::DestroyItem(LPITEM item)
#else
void ITEM_MANAGER::DestroyItem(LPITEM item, const char* file, size_t line)
#endif
{
if (item->GetSectree())
item->RemoveFromGround();
DWORD dwID = item->GetID();
DWORD dwOwnerID = item->GetLastOwnerPID();
LPCHARACTER o;
TPlayerItem t;
t.window = item->GetWindow();
t.count = item->GetCount();
t.vnum = item->GetOriginalVnum();
t.pos = t.window == EQUIPMENT ? item->GetCell() - INVENTORY_MAX_NUM : item->GetCell();
if (item->GetWindow() == MALL || item->GetWindow() == SAFEBOX || item->GetWindow() == INVENTORY_MAX_NUM)
{
// 20050613.ipkn.�� �������� ������ ���� ��� ����� ������...