Bazaar developer reference

GetPlayerUnit(const IDInfo &)

Defined in
CvGameCoreUtils.h, line 365
Not a hook point
written in a header

Code

365inline const CvUnit* GetPlayerUnit(const IDInfo& unit)366{367	if((unit.eOwner >= 0) && unit.eOwner < MAX_PLAYERS)368	{369		return (GET_PLAYER((PlayerTypes)unit.eOwner).m_units.GetAt(unit.iID));370	}371372	return NULL;373}

Calls

Called by