]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix crash when autocompleting a cvar alias
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 6 Jun 2020 18:11:32 +0000 (18:11 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 6 Jun 2020 18:11:32 +0000 (18:11 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12644 d7cf8633-e32d-0410-b094-e92efae38249

console.c

index 59316d451a50f125ecd0601c19e82d8616931ab5..6e1dd4c4969c48e129a51c5ee810ab7770241f6d 100644 (file)
--- a/console.c
+++ b/console.c
@@ -3036,7 +3036,7 @@ void Con_CompleteCommandLine (cmd_state_t *cmd)
        if (c)
                text = *(list[0] = Cmd_CompleteBuildList(cmd, s));
        if (v)
-               text = *(list[1] = Cvar_CompleteBuildList(cmd->cvars, s, cmd->cvars_flagsmask));
+               text = *(list[1] = Cvar_CompleteBuildList(cmd->cvars, s, (cmd->cvars_flagsmask |= CVAR_ALIAS)));
        if (a)
                text = *(list[2] = Cmd_CompleteAliasBuildList(cmd, s));
        if (n)