I meant consvar_number_of_netids to be exclusive :V

This commit is contained in:
James R 2020-06-20 00:53:51 -07:00
parent 3e52764935
commit 7ec0b6c792
1 changed files with 1 additions and 1 deletions

View File

@ -1188,7 +1188,7 @@ static consvar_t *CV_FindNetVar(UINT16 netid)
{
consvar_t *cvar;
if (netid > consvar_number_of_netids)
if (netid >= consvar_number_of_netids)
return NULL;
for (cvar = consvar_vars; cvar; cvar = cvar->next)