Skip to content
Snippets Groups Projects
Commit 30057e92 authored by James R.'s avatar James R.
Browse files

Start netid at 1 to avoid CV_FindNetVar returning a regular cvar for netid 0

parent c7c9ae38
No related branches found
No related tags found
1 merge request!1137Avoid CV_FindNetVar returning a normal cvar (closes #251)
......@@ -1262,7 +1262,7 @@ void CV_RegisterVar(consvar_t *variable)
// check net variables
if (variable->flags & CV_NETVAR)
{
variable->netid = consvar_number_of_netids++;
variable->netid = ++consvar_number_of_netids;
/* in case of overflow... */
if (variable->netid > consvar_number_of_netids)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment