Remove unnecessary check in TaskGetLocationNearLocation

This commit is contained in:
Louis Hobbs 2023-09-05 16:56:17 +01:00
parent 681641672c
commit 0dc524e02d
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ EBTNodeResult::Type UTaskGetLocationNearLocation::ExecuteTask(UBehaviorTreeCompo
auto NavigationSystem = FNavigationSystem::GetCurrent<UNavigationSystemV1>(GetWorld());
FVector SourceLocation = BlackboardComponent->GetValueAsVector(SourceLocationKey.SelectedKeyName);
if (BlackboardComponent && NavigationSystem && SourceLocation != FVector::ZeroVector)
if (NavigationSystem && SourceLocation != FVector::ZeroVector)
{
double Distance = -1.0;
FNavLocation NavLocation;