Fix hardcoded array size

Forgot about this one..
This commit is contained in:
Amos 2022-01-16 03:26:11 +01:00
parent 81adb8afd7
commit d21a947474

View File

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