]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.c
don't set the request-Lvalue flag for an array index
[xonotic/gmqcc.git] / ast.c
diff --git a/ast.c b/ast.c
index bb2f5d1680882f9e3d10ef1cae3d8ab54bb5093d..cab7def717497be12e371098091be640b73b6762 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -2045,7 +2045,7 @@ bool ast_array_index_codegen(ast_array_index *self, ast_function *func, bool lva
         }
 
         cgen = self->index->expression.codegen;
-        if (!(*cgen)((ast_expression*)(self->index), func, true, &iridx))
+        if (!(*cgen)((ast_expression*)(self->index), func, false, &iridx))
             return false;
 
         cgen = arr->getter->expression.codegen;