for (ri.Begin(); ri.GetData() != ri.End(); ri++)
for (ri.Begin(); !ri.atEnd(); ri++)
P_ITEM findmulti(Coord_cl pos) //Sortta like getboat() only more general... use this for other multi stuff!{	int lastdist = 30;	P_ITEM multi = NULL;	int ret;	cRegion::RegionIterator4Items ri(pos);		for (ri.Begin(); ri.GetData() != ri.End(); ri++)	{		P_ITEM mapitem = ri.GetData();		if (mapitem != NULL)		{			if (mapitem->isMulti())			{				ret = pos.distance(mapitem->pos);				if (ret <= lastdist)				{					lastdist = ret;					if (inmulti(pos, mapitem))						multi = mapitem;				}			}		}	}	return multi;}