Fix Output BluePrint V2

This commit is contained in:
2025-07-18 02:22:40 +02:00
parent dbe904e388
commit 0bc765cd29
2 changed files with 6 additions and 5 deletions

View File

@ -56,11 +56,12 @@ void UFTDFluxUtils::GetFullName(const int Bib, FText& OutFullName)
UE_LOG(logDTFluxUtilities, Error, TEXT("DTFluxCoreSubsystem not available"));
}
TArray<FDTFluxSplitSensorInfo>& UFTDFluxUtils::SortSplitRankingsByRank(TArray<FDTFluxSplitSensorInfo>& OutRankings)
TArray<FDTFluxSplitSensorInfo> UFTDFluxUtils::SortSplitRankingsByRank(const TArray<FDTFluxSplitSensorInfo>& Rankings)
{
OutRankings.Sort([](const FDTFluxSplitSensorInfo& A, const FDTFluxSplitSensorInfo& B)
TArray<FDTFluxSplitSensorInfo> CopyRankings = Rankings;
CopyRankings.Sort([](const FDTFluxSplitSensorInfo& A, const FDTFluxSplitSensorInfo& B)
{
return A.Rank < B.Rank;
});
return OutRankings;
return CopyRankings;
}

View File

@ -5,7 +5,7 @@
#include "CoreMinimal.h"
#include "DTFluxCore/Public/Types/Struct/DTFluxTeamListStruct.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "Types/Struct/DTFluxRankingStructs.h"
#include "Types/Struct/DTFluxSplitSensor.h"
#include "DTFluxUtils.generated.h"
/**
@ -71,7 +71,7 @@ public:
static void GetFullName(const int Bib, FText& OutFullName);
UFUNCTION(BlueprintCallable, Category="DTFlux|Utils")
static TArray<FDTFluxSplitSensorInfo>& SortSplitRankingsByRank(TArray<FDTFluxSplitSensorInfo>& OutRankings);
static TArray<FDTFluxSplitSensorInfo> SortSplitRankingsByRank(const TArray<FDTFluxSplitSensorInfo>& OutRankings);
};