Skip to content

Commit

Permalink
#52499 Fix parsing 'preload': increase/decrease parenthesis count
Browse files Browse the repository at this point in the history
  • Loading branch information
kdiduk committed Oct 6, 2021
1 parent 76693aa commit 835143b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/gdscript/gdscript_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,9 @@ GDScriptParser::Node *GDScriptParser::_parse_expression(Node *p_parent, bool p_s
bool valid = false;
ConstantNode *cn;

parenthesis++;
Node *subexpr = _parse_and_reduce_expression(p_parent, p_static);
parenthesis--;
if (subexpr) {
if (subexpr->type == Node::TYPE_CONSTANT) {
cn = static_cast<ConstantNode *>(subexpr);
Expand Down

0 comments on commit 835143b

Please sign in to comment.