From 43c1c680f0141bfd12dca317dccdd249c3dfa529 Mon Sep 17 00:00:00 2001 From: Julien Nguyen Date: Tue, 6 Apr 2021 19:00:08 +0200 Subject: Fix stack overflow in setter --- modules/gdscript/gdscript_compiler.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3