From adef6ecc5490a07bccc41e10e6692b7200191e4d Mon Sep 17 00:00:00 2001 From: Louis Hobbs Date: Sat, 24 Jun 2023 15:25:21 +0100 Subject: [PATCH] Add future TODO message --- Source/Nakatomi/EnemyAIController.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Nakatomi/EnemyAIController.cpp b/Source/Nakatomi/EnemyAIController.cpp index f546723..3527a63 100644 --- a/Source/Nakatomi/EnemyAIController.cpp +++ b/Source/Nakatomi/EnemyAIController.cpp @@ -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(); weaponPickup->SetActorLocation(enemy->GetActorLocation()); weaponPickup->SetWeapon(enemy->DefaultWeaponInventory[enemy->GetCurrentInventorySlot()]);