while ( (( pi=ContainerSearch(pc->serial,&ci)) != NULL) && (++loopexit < MAXLOOPS) )
vector<SERIAL> vecContainer = contsp.getData(pc->serial); for ( ci = 0; ci < vecContainer.size(); ci++)
static void KillTarget(P_CHAR pc, int ly){	int ci=0, loopexit=0;	P_ITEM pi;	while ( (( pi=ContainerSearch(pc->serial,&ci)) != NULL) && (++loopexit < MAXLOOPS) )	{		if (pi->layer==ly)		{			Items->DeleItem(pi);		}	}}