From 5def4c4148aebeeb3ee4eaa212339456ec46c28e Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Sun, 2 Jun 2024 08:28:17 +0300 Subject: [PATCH] fix api build error because of `g_pSteamClientGameServer` (defined as export & initialized) --- dll/dll.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dll/dll.cpp b/dll/dll.cpp index 2f8fbedd..8a3c2279 100644 --- a/dll/dll.cpp +++ b/dll/dll.cpp @@ -164,10 +164,10 @@ STEAMAPI_API HSteamUser SteamAPI_GetHSteamUser() #ifdef STEAMCLIENT_DLL // client ISteamClient *g_pSteamClientGameServer{}; #else // api -STEAMAPI_API ISteamClient *g_pSteamClientGameServer{}; +STEAMAPI_API ISteamClient *g_pSteamClientGameServer; #endif -static Steam_Client *steamclient_instance; +static Steam_Client *steamclient_instance{}; Steam_Client *get_steam_client() { if (!steamclient_instance) { @@ -201,7 +201,7 @@ Steam_Client *get_steam_clientserver_old() return get_steam_client(); } -static bool steamclient_has_ipv6_functions_flag; +static bool steamclient_has_ipv6_functions_flag{}; bool steamclient_has_ipv6_functions() { return get_steam_client()->gameserver_has_ipv6_functions || steamclient_has_ipv6_functions_flag;