Fixing GetFullName

This commit is contained in:
2025-07-15 05:13:31 +02:00
parent e63f54a882
commit 69536766b1

View File

@ -31,14 +31,13 @@ void UFTDFluxUtils::GetFullName(const int Bib, FText& OutFullName)
{
OutFullName = FText();
UDTFluxCoreSubsystem* CoreSubsystem = GEngine->GetEngineSubsystem<UDTFluxCoreSubsystem>();
FDTFluxParticipant Participant;
CoreSubsystem->GetParticipant(Bib, Participant);
if(CoreSubsystem != nullptr)
{
FDTFluxParticipant OutParticipant;
if(CoreSubsystem->GetParticipant(Bib, OutParticipant))
FDTFluxParticipant Participant;
if(CoreSubsystem->GetParticipant(Bib, Participant))
{
FString FormattedName = "";
if (OutParticipant.IsTeam())
if (Participant.IsTeam())
{
OutFullName = FText::FromString(Participant.Team);
return;