Skip to content

Commit 9815192

Browse files
committed
Fix regression with 1 addon on a default map
1 parent 6af7c3b commit 9815192

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/multiaddonmanager.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,8 +673,10 @@ void FASTCALL Hook_SendNetMessage(INetChannel *pNetChan, INetworkMessageInternal
673673
// Because for SOME reason, this can put the client in a state of limbo after the 25/07/2024 update
674674
// Also we send the workshop map here because the client MUST have it in order to remain in the server
675675
// This is what prompts clients to download the next map after all
676+
std::string sMap = g_MultiAddonManager.GetCurrentWorkshopMap();
677+
676678
if (pMsg->signon_state() == SIGNONSTATE_CHANGELEVEL)
677-
pMsg->set_addons(g_MultiAddonManager.GetCurrentWorkshopMap().c_str());
679+
pMsg->set_addons(sMap.empty() ? g_MultiAddonManager.m_ExtraAddons[0].c_str() : sMap.c_str()); // If we're on a default map send the first addon
678680

679681
ClientJoinInfo_t *pPendingClient = GetPendingClient(pNetChan);
680682

0 commit comments

Comments
 (0)