Skip to content

Commit

Permalink
Disable caching of g_ISteamGameServer, listen server may reassign ins…
Browse files Browse the repository at this point in the history
…tance after each map change
  • Loading branch information
s1lentq committed Aug 22, 2024
1 parent 2370bda commit 38eeb46
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions reunion/src/client_auth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,9 @@ void SV_ConnectClient_hook(IRehldsHook_SV_ConnectClient* chain) {
}
#endif

client_auth_context_t ctx;

if (!g_ISteamGameServer)
g_ISteamGameServer = g_RehldsApi->GetServerData()->GetSteamGameServer();
g_ISteamGameServer = g_RehldsApi->GetServerData()->GetSteamGameServer();

client_auth_context_t ctx;
g_CurrentAuthContext = &ctx;
chain->callNext();
g_CurrentAuthContext = nullptr;
Expand Down

0 comments on commit 38eeb46

Please sign in to comment.