Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lachablock committed Sep 28, 2020
1 parent 7697553 commit 5946b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5946b54

Please sign in to comment.