if ((ti->dataInfo[i].typeX.id == type->id) && (ti->dataInfo[i].typeX.eid == type->eid)) {
if ((ti->dataInfo[i].type.id == type->id) && (ti->dataInfo[i].type.eid == type->eid)) {
FieldInfo* getDataTemplateDataInfo(DataTemplateInfo* ti, FieldType* type) {	int i;		for (i = 0; i < ti->dataCount; i++) {		if ((ti->dataInfo[i].typeX.id == type->id) && (ti->dataInfo[i].typeX.eid == type->eid)) {			return &ti->dataInfo[i];			}		}	return NULL;			}