Fix compiler warning
This commit is contained in:
parent
7697553498
commit
5946b54a92
|
@ -1263,7 +1263,7 @@ void CV_RegisterVar(consvar_t *variable)
|
||||||
if (variable->flags & CV_NETVAR)
|
if (variable->flags & CV_NETVAR)
|
||||||
{
|
{
|
||||||
/* in case of overflow... */
|
/* in case of overflow... */
|
||||||
if (consvar_number_of_netids + 1 < consvar_number_of_netids)
|
if (consvar_number_of_netids == UINT16_MAX)
|
||||||
I_Error("Way too many netvars");
|
I_Error("Way too many netvars");
|
||||||
|
|
||||||
variable->netid = ++consvar_number_of_netids;
|
variable->netid = ++consvar_number_of_netids;
|
||||||
|
|
Loading…
Reference in a new issue