浏览代码

Merge pull request #47807 from Blackiris/fix-is-type-treated-as-address

Fix type argument in is_builtin which was treated as an address
Rémi Verschelde 4 年之前
父节点
当前提交
3d1d3ab3db
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/gdscript/gdscript_byte_codegen.cpp

+ 1 - 1
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);