From 279a11bbda8b382a46e6049cfa23690e7ae686b7 Mon Sep 17 00:00:00 2001 From: Thakee Nathees Date: Tue, 8 Sep 2020 18:33:53 +0530 Subject: [PATCH] GDScript crash on builtin type constructor fix Fix: #41848 --- modules/gdscript/gdscript_byte_codegen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gdscript/gdscript_byte_codegen.cpp b/modules/gdscript/gdscript_byte_codegen.cpp index 8f0ce99de65..eabf53581db 100644 --- a/modules/gdscript/gdscript_byte_codegen.cpp +++ b/modules/gdscript/gdscript_byte_codegen.cpp @@ -529,6 +529,7 @@ void GDScriptByteCodeGenerator::write_construct(const Address &p_target, Variant append(p_arguments[i]); } append(p_target); + alloc_call(p_arguments.size()); } void GDScriptByteCodeGenerator::write_construct_array(const Address &p_target, const Vector
&p_arguments) {