Fix hash mismatch error print in gdextension's gdnative_classdb_get_method_bind

This commit is contained in:
Emmanuel Leblond 2022-09-21 00:41:48 +02:00
parent 1a0943e0f8
commit 2ee951cef5
No known key found for this signature in database
GPG key ID: C360860E645EFFC0

View file

@ -884,7 +884,7 @@ static GDNativeMethodBindPtr gdnative_classdb_get_method_bind(const char *p_clas
MethodBind *mb = ClassDB::get_method(StringName(p_classname), StringName(p_methodname));
ERR_FAIL_COND_V(!mb, nullptr);
if (mb->get_hash() != p_hash) {
ERR_PRINT_ONCE("Hash mismatch for method '" + String(p_classname) + "." + String(p_methodname) + "'.");
ERR_PRINT("Hash mismatch for method '" + String(p_classname) + "." + String(p_methodname) + "'.");
return nullptr;
}
// MethodBind *mb = ClassDB::get_method("Node", "get_name");