mirror of
https://github.com/mordentral/AdvancedSessionsPlugin.git
synced 2025-10-22 16:04:18 +00:00
correct this pull request for ue5
This commit is contained in:
@@ -64,7 +64,8 @@ void ULoginUserCallbackProxy::OnCompleted(int32 LocalUserNum, bool bWasSuccessfu
|
|||||||
if (PlayerControllerWeakPtr.IsValid())
|
if (PlayerControllerWeakPtr.IsValid())
|
||||||
{
|
{
|
||||||
ULocalPlayer* Player = Cast<ULocalPlayer>(PlayerControllerWeakPtr->Player);
|
ULocalPlayer* Player = Cast<ULocalPlayer>(PlayerControllerWeakPtr->Player);
|
||||||
auto uniqueId = UserId.AsShared();
|
|
||||||
|
FUniqueNetIdRepl UniqueID(UserId.AsShared());
|
||||||
|
|
||||||
if (Player)
|
if (Player)
|
||||||
{
|
{
|
||||||
@@ -74,15 +75,13 @@ void ULoginUserCallbackProxy::OnCompleted(int32 LocalUserNum, bool bWasSuccessfu
|
|||||||
{
|
{
|
||||||
Identity->ClearOnLoginCompleteDelegate_Handle(Player->GetControllerId(), DelegateHandle);
|
Identity->ClearOnLoginCompleteDelegate_Handle(Player->GetControllerId(), DelegateHandle);
|
||||||
}
|
}
|
||||||
Player->SetCachedUniqueNetId(uniqueId);
|
Player->SetCachedUniqueNetId(UniqueID);
|
||||||
}
|
}
|
||||||
|
|
||||||
APlayerState* State = PlayerControllerWeakPtr->PlayerState;
|
if (APlayerState* State = PlayerControllerWeakPtr->PlayerState)
|
||||||
|
|
||||||
if (State)
|
|
||||||
{
|
{
|
||||||
// Update UniqueId. See also ShowLoginUICallbackProxy.cpp
|
// Update UniqueId. See also ShowLoginUICallbackProxy.cpp
|
||||||
State->SetUniqueId((const FUniqueNetIdPtr&) uniqueId);
|
State->SetUniqueId(UniqueID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user