diff options
author | ocean (they/them) <anvilfolk@gmail.com> | 2023-02-15 16:00:22 -0500 |
---|---|---|
committer | ocean (they/them) <anvilfolk@gmail.com> | 2023-02-15 17:54:38 -0500 |
commit | 94dfac8da7bf8230f292cad8839696f572e8357c (patch) | |
tree | 5af243adf75933aa9acbfc620c91a139ab4401a4 /modules/gdscript/gdscript_compiler.cpp | |
parent | f2aae8fa5c2e9d9323832fb43c8446c2e518d698 (diff) |
Add return type for GDScript getters
Diffstat (limited to 'modules/gdscript/gdscript_compiler.cpp')
-rw-r--r-- | modules/gdscript/gdscript_compiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_compiler.cpp b/modules/gdscript/gdscript_compiler.cpp index 46cd4b0d55..b34be11169 100644 --- a/modules/gdscript/gdscript_compiler.cpp +++ b/modules/gdscript/gdscript_compiler.cpp @@ -254,7 +254,7 @@ GDScriptCodeGenerator::Address GDScriptCompiler::_parse_expression(CodeGen &code if (codegen.script->member_indices.has(identifier)) { if (codegen.script->member_indices[identifier].getter != StringName() && codegen.script->member_indices[identifier].getter != codegen.function_name) { // Perform getter. - GDScriptCodeGenerator::Address temp = codegen.add_temporary(); + GDScriptCodeGenerator::Address temp = codegen.add_temporary(codegen.script->member_indices[identifier].data_type); Vector<GDScriptCodeGenerator::Address> args; // No argument needed. gen->write_call_self(temp, codegen.script->member_indices[identifier].getter, args); return temp; |