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

This commit is contained in:
James R 2020-09-05 22:03:14 -07:00
parent c7c9ae3847
commit 30057e9268

View file

@ -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)