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