mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-29 20:50:58 +00:00
Fix compiler warning
This commit is contained in:
parent
7697553498
commit
5946b54a92
1 changed files with 1 additions and 1 deletions
|
@ -1263,7 +1263,7 @@ void CV_RegisterVar(consvar_t *variable)
|
|||
if (variable->flags & CV_NETVAR)
|
||||
{
|
||||
/* 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");
|
||||
|
||||
variable->netid = ++consvar_number_of_netids;
|
||||
|
|
Loading…
Reference in a new issue