mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +00:00
Start netid at 1 to avoid CV_FindNetVar returning a regular cvar for netid 0
This commit is contained in:
parent
c7c9ae3847
commit
30057e9268
1 changed files with 1 additions and 1 deletions
|
@ -1262,7 +1262,7 @@ void CV_RegisterVar(consvar_t *variable)
|
||||||
// check net variables
|
// check net variables
|
||||||
if (variable->flags & CV_NETVAR)
|
if (variable->flags & CV_NETVAR)
|
||||||
{
|
{
|
||||||
variable->netid = consvar_number_of_netids++;
|
variable->netid = ++consvar_number_of_netids;
|
||||||
|
|
||||||
/* in case of overflow... */
|
/* in case of overflow... */
|
||||||
if (variable->netid > consvar_number_of_netids)
|
if (variable->netid > consvar_number_of_netids)
|
||||||
|
|
Loading…
Reference in a new issue