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(); 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;