Skip to content

Commit 11771a4

Browse files
committed
Only init Steam API once
1 parent 47594cd commit 11771a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/multiaddonmanager.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,8 @@ void MultiAddonManager::ClearAddons()
414414
void MultiAddonManager::Hook_GameServerSteamAPIActivated()
415415
{
416416
// This is only intended for dedicated servers
417-
if (!CommandLine()->HasParm("-dedicated"))
417+
// Also if this is somehow called again don't do anything
418+
if (!CommandLine()->HasParm("-dedicated") || g_SteamAPI.SteamUGC())
418419
return;
419420

420421
Message("Steam API Activated\n");

0 commit comments

Comments
 (0)