diff options
author | Jovan Gerodetti <jovan.gerodetti@titannano.de> | 2023-12-17 12:42:14 +0100 |
---|---|---|
committer | Jovan Gerodetti <jovan.gerodetti@titannano.de> | 2023-12-17 12:42:14 +0100 |
commit | 179c92eb0be70f3d3babbf511031af0acf6473f6 (patch) | |
tree | c1183a5cae74d9fe1a8a3aa0bdfc7fbe7b0b9801 /core/object/object.h | |
parent | 2d0ee20ff30461b6b10f6fdfba87511a0ebc6642 (diff) | |
download | redot-engine-179c92eb0be70f3d3babbf511031af0acf6473f6.tar.gz |
Include name field in MethodInfo operator ==
Diffstat (limited to 'core/object/object.h')
-rw-r--r-- | core/object/object.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/object/object.h b/core/object/object.h index fdd1c0b267..d697f14b7e 100644 --- a/core/object/object.h +++ b/core/object/object.h @@ -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; |