Skip to content

Commit

Permalink
Sort cvars in ascending order, not descending
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed Oct 16, 2024
1 parent 2b7dd17 commit 7c44930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Quake/cvar.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ void Cvar_RegisterVariable (cvar_t *variable)
// link the variable in
//johnfitz -- insert each entry in alphabetical order
for (i = 0; i < cvar_count; i++)
if (strcmp (variable->name, cvar_list[i]->name) > 0)
if (strcmp (variable->name, cvar_list[i]->name) < 0)
break;
if (i < cvar_count)
{
Expand Down

0 comments on commit 7c44930

Please sign in to comment.