fix 18.40 cone &e diting :)

This commit is contained in:
Gray
2025-07-15 12:40:41 -04:00
parent 4f17a0e37c
commit f6be54705d
3 changed files with 12 additions and 3 deletions

View File

@@ -193,8 +193,8 @@ APawn* AGameModeBase::SpawnDefaultPawnForHook(AGameModeBase* GameMode, AControll
for (int i = 0; i < StartingItems.Num(); ++i)
{
auto& StartingItem = StartingItems.at(i);
auto& StartingItem = StartingItems.at(i, FItemAndCount::GetStructSize());
LOG_INFO(LogDev, "Adding starting item {} x{}!", StartingItem.GetItem() ? StartingItem.GetItem()->GetFullName() : "BadRead", StartingItem.GetCount());
WorldInventory->AddItem(StartingItem.GetItem(), nullptr, StartingItem.GetCount());
}