Merge pull request #54227 from akien-mga/3.x-gdscript-multiline-indexing

This commit is contained in:
Rémi Verschelde 2021-11-08 15:03:24 +01:00 committed by GitHub
commit bd828c4d81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1223,7 +1223,9 @@ GDScriptParser::Node *GDScriptParser::_parse_expression(Node *p_parent, bool p_s
tokenizer->advance(1);
parenthesis++;
Node *subexpr = _parse_expression(op, p_static, p_allow_assign, p_parsing_constant);
parenthesis--;
if (!subexpr) {
return nullptr;
}