diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 35ae02a0aa0..0d0da37f60b 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -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; }