sanitize sv_player_slots

This commit is contained in:
nheir 2018-12-02 15:57:54 +01:00
parent afb5029c61
commit 8184bc1119

View file

@ -1370,6 +1370,8 @@ void CGameContext::ConchainSettingUpdate(IConsole::IResult *pResult, void *pUser
if(pResult->NumArguments())
{
CGameContext *pSelf = (CGameContext *)pUserData;
if(pSelf->Server()->MaxClients() < g_Config.m_SvPlayerSlots)
g_Config.m_SvPlayerSlots = pSelf->Server()->MaxClients();
pSelf->SendSettings(-1);
}
}