mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Start netid at 1 to avoid CV_FindNetVar returning a regular cvar for netid 0
This commit is contained in:
parent
a7d7933c5a
commit
0b1f7792e9
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…
Add table
Reference in a new issue