if((pi->corpse == 1) || (pi->type() == 51) || (pi->type() == 52))
if(( pi->corpse() ) || (pi->type() == 51) || (pi->type() == 52))
void command_cleanup(UOXSOCKET s){	int corpses=0;		sysmessage(s, tr("Cleaning corpses and closing gates..."));	AllItemsIterator iter_items;	for( iter_items.Begin(); !iter_items.atEnd(); iter_items++ )	{		P_ITEM pi = iter_items.GetData();		if((pi->corpse == 1) || (pi->type() == 51) || (pi->type() == 52))		{			iter_items--; // Iterator will became invalid when we delete it.			Items->DeleItem(pi);			corpses++;		}	}	gcollect();	sysmessage(s, tr("Done."));	sysmessage(s, tr("%1 corpses or gates have been cleaned.").arg(corpses));}