You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
GDScript: Allow using self in lambdas
This commit is contained in:
@@ -1197,7 +1197,7 @@ GDScriptCodeGenerator::Address GDScriptCompiler::_parse_expression(CodeGen &code
|
||||
return GDScriptCodeGenerator::Address();
|
||||
}
|
||||
|
||||
gen->write_lambda(result, function, captures);
|
||||
gen->write_lambda(result, function, captures, lambda->use_self);
|
||||
|
||||
for (int i = 0; i < captures.size(); i++) {
|
||||
if (captures[i].mode == GDScriptCodeGenerator::Address::TEMPORARY) {
|
||||
|
||||
Reference in New Issue
Block a user