Fix hardcoded array size

Forgot about this one..
This commit is contained in:
Amos 2022-01-16 03:26:11 +01:00
parent 924b8c4bea
commit 63eee2a6fd

View File

@ -591,7 +591,7 @@ void ConVar::ClearHostNames(void)
"stats_hostname" "stats_hostname"
}; };
for (int i = 0; i < 17; i++) for (int i = 0; i < (&pszHostnameArray)[1] - pszHostnameArray; i++)
{ {
const char* pszName = pszHostnameArray[i]; const char* pszName = pszHostnameArray[i];
ConVar* pCVar = g_pCVar->FindVar(pszName); ConVar* pCVar = g_pCVar->FindVar(pszName);