diff options
author | Julien Nguyen <julien.nguyen3@gmail.com> | 2021-04-11 20:34:48 +0200 |
---|---|---|
committer | Julien Nguyen <julien.nguyen3@gmail.com> | 2021-04-11 20:34:48 +0200 |
commit | 9936abb3d525d84f0fa2e647a9ebd34b910d14be (patch) | |
tree | a82c43b085bcaa5b9602e2b2481564220607d14d /modules | |
parent | 43f89e7c2ca080168ebf8adc1c23489491320429 (diff) |
Fix type argument in is_builtin which was treated as an address
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_byte_codegen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_byte_codegen.cpp b/modules/gdscript/gdscript_byte_codegen.cpp index b553dcede3..af2bfc33a7 100644 --- a/modules/gdscript/gdscript_byte_codegen.cpp +++ b/modules/gdscript/gdscript_byte_codegen.cpp @@ -391,7 +391,7 @@ void GDScriptByteCodeGenerator::write_type_test(const Address &p_target, const A } void GDScriptByteCodeGenerator::write_type_test_builtin(const Address &p_target, const Address &p_source, Variant::Type p_type) { - append(GDScriptFunction::OPCODE_IS_BUILTIN, 3); + append(GDScriptFunction::OPCODE_IS_BUILTIN, 2); append(p_source); append(p_target); append(p_type); |