Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/multiaddonmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,11 @@ void FASTCALL Hook_SetPendingHostStateRequest(CHostStateMgr* pMgrDoNotUse, CHost

if (!pRequest->m_pKV)
{
g_MultiAddonManager.ClearCurrentWorkshopMap();
// When loading an official community map, the KV is empty, but the addon is set regardless.
if (pRequest->m_LoopModeType == "levelload" && !pRequest->m_Addons.IsEmpty())
g_MultiAddonManager.SetCurrentWorkshopMap(pRequest->m_Addons.Get());
else
g_MultiAddonManager.ClearCurrentWorkshopMap();
}
else if (V_stricmp(pRequest->m_pKV->GetName(), "ChangeLevel"))
{
Expand Down