if (pi->corpse==1)
if( pi->corpse() == 1 )
static void decay1(P_ITEM pi, P_ITEM pItem){	long serial;	if (pi->corpse==1)	{		serial=pi->serial;		unsigned int ci;		vector<SERIAL> vecContainer( contsp.getData(pi->serial) );		for (ci=0;ci<vecContainer.size();ci++)		{			P_ITEM pi_j = FindItemBySerial(vecContainer[ci]);			if( pi_j != NULL )			{				if ((pi_j->contserial==pi->serial) &&					(pi_j->layer()!=0x0B)&&(pi_j->layer()!=0x10))				{					pi_j->setContSerial(-1);					pi_j->moveTo(pi->pos);					Items->DeleItem(pi_j);				}/*				if ((pi_j->contserial==pi->serial) &&					(pi_j->free==false)&&					((pi_j->layer==0x0B)||(pi_j->layer==0x10)))				{					Items->DeleItem(pi_j);				}*/			}		}	}	else	{		if ( pi->multis == INVALID_SERIAL )		{			P_ITEM pi_multi = findmulti( pi->pos );			if( pi_multi == NULL )			{				Items->DeleItem(pItem);			}		}	}}