Skip to content

Commit

Permalink
Merge pull request #86259 from TitanNano/jovan/fix_MethodInfo_eq
Browse files Browse the repository at this point in the history
Include `name` field in MethodInfo operator ==
  • Loading branch information
akien-mga committed Jan 2, 2024
2 parents e78c5d0 + 179c92e commit 35d1ffb
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 35d1ffb

Please sign in to comment.