From 9c5dae532deb763546e4e04dad262b21d68ad1f1 Mon Sep 17 00:00:00 2001 From: Chris Cranford Date: Sun, 5 Apr 2026 18:14:19 -0400 Subject: [PATCH] Align MethodInfo equality check with engine --- include/godot_cpp/core/object.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/godot_cpp/core/object.hpp b/include/godot_cpp/core/object.hpp index daefd237a..fbd08f670 100644 --- a/include/godot_cpp/core/object.hpp +++ b/include/godot_cpp/core/object.hpp @@ -70,7 +70,7 @@ struct MethodInfo { GDExtensionClassMethodArgumentMetadata return_val_metadata; LocalVector arguments_metadata; - inline bool operator==(const MethodInfo &p_method) const { return id == p_method.id; } + inline bool operator==(const MethodInfo &p_method) const { return id == p_method.id && name == p_method.name; } inline bool operator<(const MethodInfo &p_method) const { return id == p_method.id ? (name < p_method.name) : (id < p_method.id); } operator Dictionary() const;