File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Source/Immutable/Private/Immutable Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -657,11 +657,12 @@ void UImmutablePassport::SavePassportSettings()
657
657
658
658
void UImmutablePassport::LoadPassportSettings ()
659
659
{
660
- UImmutableSaveGame* SaveGameInstance = Cast<UImmutableSaveGame>(UGameplayStatics::LoadGameFromSlot (PASSPORT_SAVE_GAME_SLOT_NAME, 0 ));
661
-
662
- if (SaveGameInstance)
660
+ if (UGameplayStatics::DoesSaveGameExist (PASSPORT_SAVE_GAME_SLOT_NAME, 0 ))
663
661
{
664
- SaveGameInstance->bWasConnectedViaPKCEFlow ? SetStateFlags (IPS_PKCE) : ResetStateFlags (IPS_PKCE);
662
+ if (const UImmutableSaveGame* SaveGameInstance = Cast<UImmutableSaveGame>(UGameplayStatics::LoadGameFromSlot (PASSPORT_SAVE_GAME_SLOT_NAME, 0 )))
663
+ {
664
+ SaveGameInstance->bWasConnectedViaPKCEFlow ? SetStateFlags (IPS_PKCE) : ResetStateFlags (IPS_PKCE);
665
+ }
665
666
}
666
667
}
667
668
You can’t perform that action at this time.
0 commit comments