That one’s fixed now. The remaining errors are:
Settings.cpp(29) : error C2440: 'initializing': cannot convert from 'TArray<TEnumAsByte<ETeamAttitude::Type>,FDefaultAllocator>' to 'FTeamAttitude &'
Settings.cpp(30) : error C2039: 'IsValidIndex': is not a member of 'FTeamAttitude'
Custom.h(34): note: see declaration of 'FTeamAttitude'
Settings.cpp(32) : error C2676: binary '': 'FTeamAttitude' does not define this operator or a conversion to a type acceptable to the predefined operator
The offending lines are on GetAttitude and are this ones:
const FTeamAttitude& attitudes = teamAttitudes[Of.GetId()].Attitude;
if (attitudes.IsValidIndex(Towards.GetId()))
{
return attitudes[Towards.GetId()];
}
Thanks for your help so far, I really appreciate it!