]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
don't set the request-Lvalue flag for an array index
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 25 Nov 2012 22:35:49 +0000 (23:35 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 25 Nov 2012 22:35:49 +0000 (23:35 +0100)
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;