]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cmd.c
fix ${* q}
[xonotic/darkplaces.git] / cmd.c
diff --git a/cmd.c b/cmd.c
index 88588672f8a9fdec0de1ee0ecc861b75102badec..c9e5cb7b81df325bb915fecb2339c044069225bd 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -826,7 +826,8 @@ static const char *Cmd_GetCvarValue(const char *var, size_t varlen, cmdalias_t *
                // Exception: $* and $n- don't use the quoted form by default
                varstr = Cmd_GetDirectCvarValue(varname, alias, &is_multiple);
                if(is_multiple)
-                       varfunc = "asis";
+                       if(!varfunc)
+                               varfunc = "asis";
        }
 
        if(!varstr)