Add future TODO message

This commit is contained in:
Louis Hobbs 2023-06-24 15:25:21 +01:00
parent b51f3a7a34
commit adef6ecc54
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ void AEnemyAIController::OnDeath(FDamageInfo info)
if (enemy->DefaultWeaponInventory.Num() > 0)
{
// TODO: This can sometimes crash, need to investigate
auto weaponPickup = GetWorld()->SpawnActor<AWeaponPickup>();
weaponPickup->SetActorLocation(enemy->GetActorLocation());
weaponPickup->SetWeapon(enemy->DefaultWeaponInventory[enemy->GetCurrentInventorySlot()]);