Fixing GetFullName
This commit is contained in:
@ -31,14 +31,13 @@ void UFTDFluxUtils::GetFullName(const int Bib, FText& OutFullName)
|
|||||||
{
|
{
|
||||||
OutFullName = FText();
|
OutFullName = FText();
|
||||||
UDTFluxCoreSubsystem* CoreSubsystem = GEngine->GetEngineSubsystem<UDTFluxCoreSubsystem>();
|
UDTFluxCoreSubsystem* CoreSubsystem = GEngine->GetEngineSubsystem<UDTFluxCoreSubsystem>();
|
||||||
FDTFluxParticipant Participant;
|
if(CoreSubsystem != nullptr)
|
||||||
CoreSubsystem->GetParticipant(Bib, Participant);
|
|
||||||
{
|
{
|
||||||
FDTFluxParticipant OutParticipant;
|
FDTFluxParticipant Participant;
|
||||||
if(CoreSubsystem->GetParticipant(Bib, OutParticipant))
|
if(CoreSubsystem->GetParticipant(Bib, Participant))
|
||||||
{
|
{
|
||||||
FString FormattedName = "";
|
FString FormattedName = "";
|
||||||
if (OutParticipant.IsTeam())
|
if (Participant.IsTeam())
|
||||||
{
|
{
|
||||||
OutFullName = FText::FromString(Participant.Team);
|
OutFullName = FText::FromString(Participant.Team);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user