mirror of
https://github.com/godotengine/godot.git
synced 2025-10-22 17:33:33 +00:00
parent
307ea716cc
commit
d42b305377
4 changed files with 15 additions and 7 deletions
|
@ -1749,7 +1749,7 @@ Error GDScriptCompiler::_parse_function(GDScript *p_script, const GDScriptParser
|
|||
return error;
|
||||
}
|
||||
GDScriptCodeGenerator::Address dst_addr = codegen.parameters[parameter->identifier->name];
|
||||
codegen.generator->write_assign(dst_addr, src_addr);
|
||||
codegen.generator->write_assign_default_parameter(dst_addr, src_addr);
|
||||
if (src_addr.mode == GDScriptCodeGenerator::Address::TEMPORARY) {
|
||||
codegen.generator->pop_temporary();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue