i hate u max

This commit is contained in:
Gray
2024-07-06 22:59:32 -04:00
parent bab7c30669
commit 486684f31f
2 changed files with 8 additions and 1 deletions

View File

@@ -247,6 +247,13 @@ void AFortGameModeAthena::OverrideSupplyDrop(AFortGameStateAthena* GameState, UC
return;
auto& SupplyDropInfoList = MapInfo->Get<TArray<UFortSupplyDropInfo*>>(SupplyDropInfoListOffset);
if (SupplyDropInfoList.Num() == 0)
{
LOG_WARN(LogGame, "No SupplyDropInfoList!");
return;
}
auto FirstSupplyDropInfo = SupplyDropInfoList.at(0);
if (!FirstSupplyDropInfo)

View File

@@ -162,7 +162,7 @@ FORCEINLINE static ValueType PickWeightedElement(const std::map<KeyType, ValueTy
}
return acc + Weight;
});
});
}
float RandomNumber = // UKismetMathLibrary::RandomFloatInRange(0, TotalWeight);