Fix ensure when starting Lyra dedicated server, my settings changes did not handle this case

#rb none
#jira UE-186295
#preflight none

[CL 25550327 by ben zeigler in ue5-main branch]
This commit is contained in:
ben zeigler
2023-05-19 15:24:58 -04:00
parent 7557fcf84b
commit c614f2f322

View File

@@ -148,7 +148,8 @@ void ULyraGameInstance::HandlerUserInitialized(const UCommonUserInfo* UserInfo,
{
ULyraLocalPlayer* LocalPlayer = Cast<ULyraLocalPlayer>(GetLocalPlayerByIndex(UserInfo->LocalPlayerIndex));
if (ensure(LocalPlayer))
// There will not be a local player attached to the dedicated server user
if (LocalPlayer)
{
LocalPlayer->LoadSharedSettingsFromDisk();
}