Skip to content

Commit 9c5dae5

Browse files
committed
Align MethodInfo equality check with engine
1 parent 1c8db40 commit 9c5dae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/godot_cpp/core/object.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct MethodInfo {
7070
GDExtensionClassMethodArgumentMetadata return_val_metadata;
7171
LocalVector<GDExtensionClassMethodArgumentMetadata> arguments_metadata;
7272

73-
inline bool operator==(const MethodInfo &p_method) const { return id == p_method.id; }
73+
inline bool operator==(const MethodInfo &p_method) const { return id == p_method.id && name == p_method.name; }
7474
inline bool operator<(const MethodInfo &p_method) const { return id == p_method.id ? (name < p_method.name) : (id < p_method.id); }
7575

7676
operator Dictionary() const;

0 commit comments

Comments
 (0)