return vec2[rand()%vec2.size()];
return vec2.size() ? vec2[rand()%vec2.size()] : 0;
Actor *Find_congregant	(	Actor *npc	)	{	Actor_vector vec, vec2;	if (!npc->find_nearby_actors(vec, c_any_shapenum, 16))		return 0;	vec2.reserve(vec.size());	// Get list of ones to consider.	for (Actor_vector::const_iterator it = vec.begin();						it != vec.end(); ++it)		{		Actor *act = *it;		if (act->get_schedule_type() == Schedule::sit &&							!act->is_in_party())			vec2.push_back(act);		}	return vec2[rand()%vec2.size()];	}