diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-04-07 23:17:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-07 23:17:30 +0200 |
commit | 73a1253095c8bb0f93170fc04e5368b9a9beea7c (patch) | |
tree | 7c6751fb00d55d873828b7cf912884831ab03c55 | |
parent | 47aef8e8dcc61b505777a84e31a507ee555d188f (diff) | |
parent | 43c1c680f0141bfd12dca317dccdd249c3dfa529 (diff) |
Merge pull request #47672 from Blackiris/fix-setter-stackoverflow
Fix stack overflow in setter
-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; |