]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
debug extparam naming shouldn't start at 8, it's confusing, param 9 is now named...
authorWolfgang Bumiller <blub@speed.at>
Fri, 25 Jan 2013 14:37:09 +0000 (15:37 +0100)
committerWolfgang Bumiller <blub@speed.at>
Fri, 25 Jan 2013 14:37:09 +0000 (15:37 +0100)
ir.c

diff --git a/ir.c b/ir.c
index 897c60269835f7969ded3cfabb979c07b23ca078..38882ec85ebf24617fd2fa483427931728cf8d79 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -3113,7 +3113,7 @@ static ir_value* ir_gen_extparam_proto(ir_builder *ir)
     ir_value *global;
     char      name[128];
 
-    snprintf(name, sizeof(name), "EXTPARM#%i", (int)(vec_size(ir->extparam_protos)+8));
+    snprintf(name, sizeof(name), "EXTPARM#%i", (int)(vec_size(ir->extparam_protos)));
     global = ir_value_var(name, store_global, TYPE_VECTOR);
 
     vec_push(ir->extparam_protos, global);