]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cmd.c
check rsurface.texture->backgroundglowtexture as well when deciding
[xonotic/darkplaces.git] / cmd.c
diff --git a/cmd.c b/cmd.c
index 51e946b299b54248eb2dea7c963cf401891f2516..651d08e2269eb6b7cedcfba78e7707f51369ee14 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -968,6 +968,9 @@ static const char *Cmd_GetCvarValue(const char *var, size_t varlen, cmdalias_t *
                {
                        memmove(p, p+1, strlen(p)); // with final NUL
                }
+               // if no function is left, NULL it
+               if(!*varfunc)
+                       varfunc = NULL;
        }
 
        if(varname[0] == '$')