Add future TODO message
This commit is contained in:
parent
b51f3a7a34
commit
adef6ecc54
|
@ -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()]);
|
||||
|
|
Loading…
Reference in New Issue