mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fix hardcoded array size
Forgot about this one..
This commit is contained in:
parent
924b8c4bea
commit
63eee2a6fd
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user