From 486684f31ff7037281c4019886eef680289f8eab Mon Sep 17 00:00:00 2001 From: Gray <84999745+Milxnor@users.noreply.github.com> Date: Sat, 6 Jul 2024 22:59:32 -0400 Subject: [PATCH] i hate u max --- Project Reboot 3.0/FortGameModeAthena.cpp | 7 +++++++ Project Reboot 3.0/FortLootPackage.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Project Reboot 3.0/FortGameModeAthena.cpp b/Project Reboot 3.0/FortGameModeAthena.cpp index cb165ae..f6ad6f4 100644 --- a/Project Reboot 3.0/FortGameModeAthena.cpp +++ b/Project Reboot 3.0/FortGameModeAthena.cpp @@ -247,6 +247,13 @@ void AFortGameModeAthena::OverrideSupplyDrop(AFortGameStateAthena* GameState, UC return; auto& SupplyDropInfoList = MapInfo->Get>(SupplyDropInfoListOffset); + + if (SupplyDropInfoList.Num() == 0) + { + LOG_WARN(LogGame, "No SupplyDropInfoList!"); + return; + } + auto FirstSupplyDropInfo = SupplyDropInfoList.at(0); if (!FirstSupplyDropInfo) diff --git a/Project Reboot 3.0/FortLootPackage.h b/Project Reboot 3.0/FortLootPackage.h index a43af74..5a89bf4 100644 --- a/Project Reboot 3.0/FortLootPackage.h +++ b/Project Reboot 3.0/FortLootPackage.h @@ -162,7 +162,7 @@ FORCEINLINE static ValueType PickWeightedElement(const std::map