diff --git a/Source/StevesUEHelpers/Private/StevesUI/FocusSystem.cpp b/Source/StevesUEHelpers/Private/StevesUI/FocusSystem.cpp index 3b8d339..86d5945 100644 --- a/Source/StevesUEHelpers/Private/StevesUI/FocusSystem.cpp +++ b/Source/StevesUEHelpers/Private/StevesUI/FocusSystem.cpp @@ -66,7 +66,8 @@ void FFocusSystem::FocusableWidgetDestructed(UFocusableUserWidget* Widget) if (Widget->HasFocusedDescendants()) { auto Highest = GetHighestFocusPriority(); - if (Highest.IsValid()) + // Make sure player controller is valid too, this could be on shutdown + if (Highest.IsValid() && Highest->GetOwningPlayer()) { UE_LOG(LogFocusSystem, Display, TEXT("Giving focus to %s"), *Highest->GetName()); Highest->TakeFocusIfDesired();