Hi,
In Lecture 11 - Leaving the Game, When I click on ReturnToMainMenu Button game crashes and gives me this error
`Assertion failed: SessionInfo->SessionType == ESteamSession::AdvertisedSessionHost || SessionInfo->SessionType == ESteamSession::AdvertisedSessionClient [File:D:\build++UE5\Sync\Engine\Plugins\Online\OnlineSubsystemSteam\Source\Private\OnlineSessionInterfaceSteam.cpp] [Line: 648]
0x00007ffb54dd6d53 UnrealEditor-OnlineSubsystemSteam.dll!UnknownFunction []
0x00007ffb54dd7797 UnrealEditor-OnlineSubsystemSteam.dll!UnknownFunction []
0x00007ffb1c68587a UnrealEditor-MultiplayerSessions-0011.dll!UMultiplayerSessionsSubsystem::DestroySession() [F:\UnrealProjects\Blaster\Plugins\MultiplayerSessions\Source\MultiplayerSessions\Private\MultiplayerSessionsSubsystem.cpp:126]
0x00007ffb73bca8bc UnrealEditor-CoreUObject.dll!UnknownFunction [] ....`
Here is my code in line 126 of MultiplayerSessionSubsystem.cpp:
void UMultiplayerSessionsSubsystem::DestroySession()
{
if(!IsValidSessionInterface())
{
MultiplayerOnDestroySessionComplete.Broadcast(false);
return;
}
DestroySessionCompleteDelegateHandle =
SessionInterface->AddOnDestroySessionCompleteDelegate_Handle(DestroySessionCompleteDelegate);
if(!SessionInterface->DestroySession(NAME_GameSession,DestroySessionCompleteDelegate))
{
SessionInterface->ClearOnDestroySessionCompleteDelegate_Handle(DestroySessionCompleteDelegateHandle);
MultiplayerOnDestroySessionComplete.Broadcast(false);
}
} ```
can someone help me?