diff options
author | Thakee Nathees <thakeenathees@gmail.com> | 2020-09-08 18:33:53 +0530 |
---|---|---|
committer | Thakee Nathees <thakeenathees@gmail.com> | 2020-09-08 18:33:53 +0530 |
commit | 279a11bbda8b382a46e6049cfa23690e7ae686b7 (patch) | |
tree | 460b9f2dc3c9426edcc9a66331faf091275542f3 /modules | |
parent | 0a8c5845e33de025f5bfcacbcb5cf1ff4fa9fc33 (diff) |
GDScript crash on builtin type constructor fix
Fix: #41848
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_byte_codegen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_byte_codegen.cpp b/modules/gdscript/gdscript_byte_codegen.cpp index 8f0ce99de6..eabf53581d 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<Address> &p_arguments) { |