Skip to content

Commit

Permalink
Include name field in MethodInfo operator ==
Browse files Browse the repository at this point in the history
  • Loading branch information
TitanNano committed Dec 17, 2023
1 parent 2d0ee20 commit 179c92e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/object/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ struct MethodInfo {
return arguments_metadata.size() > p_arg ? arguments_metadata[p_arg] : 0;
}

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;
Expand Down

0 comments on commit 179c92e

Please sign in to comment.