summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-27 12:39:20 +0200
committerGitHub <noreply@github.com>2022-07-27 12:39:20 +0200
commit663195f36a2d62d6ca8abc73e6a6b42f0560820f (patch)
tree7deca774f20e7467ae6a6597f12fbf51ec75f206 /modules
parent950750fb983ac6bf11d31999e6bfa7bde2aeb6fc (diff)
parent1b10f744e0214c296e626726b7fa0254e406bfc3 (diff)
Merge pull request #63325 from EIRTeam/typed_array_fix
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/gdscript_byte_codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_byte_codegen.cpp b/modules/gdscript/gdscript_byte_codegen.cpp
index a1a28e7675..8e4ca44e81 100644
--- a/modules/gdscript/gdscript_byte_codegen.cpp
+++ b/modules/gdscript/gdscript_byte_codegen.cpp
@@ -1608,7 +1608,7 @@ void GDScriptByteCodeGenerator::write_return(const Address &p_return_value) {
// Typed array.
const GDScriptDataType &element_type = function->return_type.get_container_element_type();
- Variant script = function->return_type.script_type;
+ Variant script = element_type.script_type;
int script_idx = get_constant_pos(script) | (GDScriptFunction::ADDR_TYPE_CONSTANT << GDScriptFunction::ADDR_BITS);
append(GDScriptFunction::OPCODE_RETURN_TYPED_ARRAY, 2);