]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
array-field setter needs to use STOREP*
authorWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 12 Nov 2012 22:05:44 +0000 (23:05 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 12 Nov 2012 22:05:44 +0000 (23:05 +0100)
parser.c

index 0fff1d95db5a60f36e1c04f386723e6c612c0ef3..b81d06c8fb9f8e573c4dd700222036738c3e8005 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -2344,10 +2344,10 @@ static ast_expression *array_field_setter_node(
         ast_return      *ret;
         ast_entfield    *entfield;
         ast_array_index *subscript;
-        int assignop = type_store_instr[value->expression.vtype];
+        int assignop = type_storep_instr[value->expression.vtype];
 
         if (value->expression.vtype == TYPE_FIELD && value->expression.next->expression.vtype == TYPE_VECTOR)
-            assignop = INSTR_STORE_V;
+            assignop = INSTR_STOREP_V;
 
         subscript = ast_array_index_new(ctx, (ast_expression*)array, (ast_expression*)parser_const_float(parser, from));
         if (!subscript)