diff --git a/Source/DTFluxUtilities/Private/DTFluxUtils.cpp b/Source/DTFluxUtilities/Private/DTFluxUtils.cpp index fb21a25..f83a02c 100644 --- a/Source/DTFluxUtilities/Private/DTFluxUtils.cpp +++ b/Source/DTFluxUtilities/Private/DTFluxUtils.cpp @@ -56,11 +56,11 @@ void UFTDFluxUtils::GetFullName(const int Bib, FText& OutFullName) UE_LOG(logDTFluxUtilities, Error, TEXT("DTFluxCoreSubsystem not available")); } -void UFTDFluxUtils::SortSplitRankingsByRank(TArray& Rankings, TArray& OutRankings) +TArray& UFTDFluxUtils::SortSplitRankingsByRank(TArray& OutRankings) { - Rankings.Sort([](const FDTFluxSplitSensorInfo& A, const FDTFluxSplitSensorInfo& B) + OutRankings.Sort([](const FDTFluxSplitSensorInfo& A, const FDTFluxSplitSensorInfo& B) { return A.Rank < B.Rank; }); - OutRankings = Rankings; + return OutRankings; } \ No newline at end of file diff --git a/Source/DTFluxUtilities/Public/DTFluxUtils.h b/Source/DTFluxUtilities/Public/DTFluxUtils.h index 75eeb1c..94d0ed6 100644 --- a/Source/DTFluxUtilities/Public/DTFluxUtils.h +++ b/Source/DTFluxUtilities/Public/DTFluxUtils.h @@ -71,7 +71,7 @@ public: static void GetFullName(const int Bib, FText& OutFullName); UFUNCTION(BlueprintCallable, Category="DTFlux|Utils") - static void SortSplitRankingsByRank(TArray& Rankings, TArray& OutRankings); + static TArray& SortSplitRankingsByRank(TArray& OutRankings); };