From 35c59044fd5da9daf0aeb27d9bc3e0a732073c79 Mon Sep 17 00:00:00 2001 From: Mr_Goldberg Date: Sat, 3 Aug 2019 19:00:31 -0400 Subject: [PATCH] SteamGameServerClient should return NULL if the gameserver is not initialized. --- dll/dll.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/dll.cpp b/dll/dll.cpp index ec7d209b..19f9c707 100644 --- a/dll/dll.cpp +++ b/dll/dll.cpp @@ -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); }