mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
squad comms
squad comms, ltms now work less (this will return better in a later update), performance, fixed some versions, fixed vulnerabilities
This commit is contained in:
@@ -295,7 +295,7 @@ static AFortPlayerPawn* SpawnAIFromCustomizationData(const FVector& Location, UF
|
||||
{
|
||||
auto& StartupInventoryItems = StartupInventory->Get<TArray<UFortItemDefinition*>>(StartupInventoryItemsOffset);
|
||||
|
||||
for (int i = 0; i < StartupInventoryItems.Num(); i++)
|
||||
for (int i = 0; i < StartupInventoryItems.Num(); ++i)
|
||||
{
|
||||
ItemsToGrant.push_back({ StartupInventoryItems.at(i), 1 });
|
||||
}
|
||||
@@ -304,7 +304,7 @@ static AFortPlayerPawn* SpawnAIFromCustomizationData(const FVector& Location, UF
|
||||
{
|
||||
auto& StartupInventoryItems = StartupInventory->Get<TArray<FItemAndCount>>(StartupInventoryItemsOffset);
|
||||
|
||||
for (int i = 0; i < StartupInventoryItems.Num(); i++)
|
||||
for (int i = 0; i < StartupInventoryItems.Num(); ++i)
|
||||
{
|
||||
ItemsToGrant.push_back({ StartupInventoryItems.at(i).Item, StartupInventoryItems.at(i).Count });
|
||||
}
|
||||
@@ -315,7 +315,7 @@ static AFortPlayerPawn* SpawnAIFromCustomizationData(const FVector& Location, UF
|
||||
|
||||
if (Inventory)
|
||||
{
|
||||
for (int i = 0; i < ItemsToGrant.size(); i++)
|
||||
for (int i = 0; i < ItemsToGrant.size(); ++i)
|
||||
{
|
||||
auto pair = Inventory->AddItem(ItemsToGrant.at(i).first, nullptr, ItemsToGrant.at(i).second);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user