mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
ast_array_index_codegen: never regenerate code
This commit is contained in:
parent
e2c424d607
commit
4b5afe3456
2 changed files with 3 additions and 1 deletions
2
ast.c
2
ast.c
|
@ -2183,9 +2183,11 @@ bool ast_array_index_codegen(ast_array_index *self, ast_function *func, bool lva
|
||||||
|
|
||||||
if (!lvalue && self->expression.outr) {
|
if (!lvalue && self->expression.outr) {
|
||||||
*out = self->expression.outr;
|
*out = self->expression.outr;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
if (lvalue && self->expression.outl) {
|
if (lvalue && self->expression.outl) {
|
||||||
*out = self->expression.outl;
|
*out = self->expression.outl;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ast_istype(self->array, ast_value)) {
|
if (!ast_istype(self->array, ast_value)) {
|
||||||
|
|
Loading…
Reference in a new issue