SteamGameServerClient should return NULL if the gameserver is not initialized.

merge-requests/19/head
Mr_Goldberg 2019-08-03 19:00:31 -04:00
parent bf4847452e
commit 35c59044fd
No known key found for this signature in database
GPG Key ID: 8597D87419DEF278
1 changed files with 1 additions and 1 deletions

View File

@ -588,7 +588,7 @@ S_API uint64 SteamGameServer_GetSteamID()
S_API ISteamClient *SteamGameServerClient() {
PRINT_DEBUG("SteamGameServerClient()\n");
load_old_interface_versions();
get_steam_clientserver_old();
if (!get_steam_clientserver_old()->IsServerInit()) return NULL;
return (ISteamClient *)SteamInternal_CreateInterface(old_client);
}