Skip to content

Commit

Permalink
Only init Steam API once
Browse files Browse the repository at this point in the history
  • Loading branch information
xen-000 committed Apr 18, 2024
1 parent 47594cd commit 11771a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/multiaddonmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,8 @@ void MultiAddonManager::ClearAddons()
void MultiAddonManager::Hook_GameServerSteamAPIActivated()
{
// This is only intended for dedicated servers
if (!CommandLine()->HasParm("-dedicated"))
// Also if this is somehow called again don't do anything
if (!CommandLine()->HasParm("-dedicated") || g_SteamAPI.SteamUGC())
return;

Message("Steam API Activated\n");
Expand Down

0 comments on commit 11771a4

Please sign in to comment.