Fix stack overflow in setter

This commit is contained in:
Julien Nguyen 2021-04-06 19:00:08 +02:00
parent 55faf1c874
commit 43c1c680f0
1 changed files with 2 additions and 0 deletions

View File

@ -2014,6 +2014,8 @@ Error GDScriptCompiler::_parse_setter_getter(GDScript *p_script, const GDScriptP
func_name = "@" + p_variable->identifier->name + "_getter";
}
codegen.function_name = func_name;
GDScriptDataType return_type;
if (p_is_setter) {
return_type.has_type = true;