diff --git a/Source/Nakatomi/TaskGetLocationNearLocation.cpp b/Source/Nakatomi/TaskGetLocationNearLocation.cpp index 69ffea5..553d6a5 100644 --- a/Source/Nakatomi/TaskGetLocationNearLocation.cpp +++ b/Source/Nakatomi/TaskGetLocationNearLocation.cpp @@ -17,7 +17,7 @@ EBTNodeResult::Type UTaskGetLocationNearLocation::ExecuteTask(UBehaviorTreeCompo auto NavigationSystem = FNavigationSystem::GetCurrent(GetWorld()); FVector SourceLocation = BlackboardComponent->GetValueAsVector(SourceLocationKey.SelectedKeyName); - if (BlackboardComponent && NavigationSystem && SourceLocation != FVector::ZeroVector) + if (NavigationSystem && SourceLocation != FVector::ZeroVector) { double Distance = -1.0; FNavLocation NavLocation;