Disable caching of g_ISteamGameServer, listen server may reassign instance after each map change

This commit is contained in:
s1lentq 2024-08-23 03:58:30 +07:00
parent 2370bdaff2
commit 38eeb46f39

View File

@ -256,11 +256,9 @@ void SV_ConnectClient_hook(IRehldsHook_SV_ConnectClient* chain) {
}
#endif
g_ISteamGameServer = g_RehldsApi->GetServerData()->GetSteamGameServer();
client_auth_context_t ctx;
if (!g_ISteamGameServer)
g_ISteamGameServer = g_RehldsApi->GetServerData()->GetSteamGameServer();
g_CurrentAuthContext = &ctx;
chain->callNext();
g_CurrentAuthContext = nullptr;