GDScript: Fix lambda captures in default argument values

This commit is contained in:
George Marques committed 2022-05-23 21:38:31 -03:00
1 parent 969f1980d2
commit 1b76a9d705
3 files changed
+12

No files matched your search

+3
View File
@@ -2926,6 +2926,9 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_lambda(ExpressionNode *p_p
current_function = function;
SuiteNode *body = alloc_node<SuiteNode>();
body->parent_function = current_function;
body->parent_block = current_suite;
SuiteNode *previous_suite = current_suite;
current_suite = body;