From f33b63a71311faadfbff6a286e88ba089aaec83a Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Sat, 6 Jun 2020 18:11:32 +0000 Subject: [PATCH] Fix crash when autocompleting a cvar alias git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12644 d7cf8633-e32d-0410-b094-e92efae38249 --- console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console.c b/console.c index 59316d45..6e1dd4c4 100644 --- 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) -- 2.39.2