]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ir.c
Don't generate vector defs if the vector's name starts with a # because that's an...
[xonotic/gmqcc.git] / ir.c
diff --git a/ir.c b/ir.c
index 2ac7ff1bdc7500a5090785b45206dc8edf13af71..f858bb6e9a535a63eb6233cbcac334e20af3989c 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -3185,7 +3185,7 @@ static void gen_vector_defs(prog_section_def def, const char *name)
     char  *component;
     size_t len, i;
 
-    if (!name || OPTS_FLAG(SINGLE_VECTOR_DEFS))
+    if (!name || name[0] == '#' || OPTS_FLAG(SINGLE_VECTOR_DEFS))
         return;
 
     def.type = TYPE_FLOAT;