diff options
author | Julien Nguyen <julien.nguyen3@gmail.com> | 2021-04-06 19:00:08 +0200 |
---|---|---|
committer | Julien Nguyen <julien.nguyen3@gmail.com> | 2021-04-06 19:00:08 +0200 |
commit | 43c1c680f0141bfd12dca317dccdd249c3dfa529 (patch) | |
tree | 43d5474d1b6bd6e2a36dafebe7b8440324f73df0 /modules/gdscript | |
parent | 55faf1c874fae5b67928395d3a35889bbb4e458b (diff) |
Fix stack overflow in setter
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gdscript_compiler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_compiler.cpp b/modules/gdscript/gdscript_compiler.cpp index 1c7a168eba..6a91148575 100644 --- a/modules/gdscript/gdscript_compiler.cpp +++ b/modules/gdscript/gdscript_compiler.cpp @@ -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; |