Skip to content

Commit

Permalink
godotengine#52499 Fix parsing 'preload': increase/decrease parenthesi…
Browse files Browse the repository at this point in the history
…s count
  • Loading branch information
kdiduk authored and sairam4123 committed Nov 10, 2021
1 parent 002c911 commit 156d313
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 156d313

Please sign in to comment.