From b50a937fe68c8f44fa835ecb6e0c89c4282fd20e Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Sat, 26 Aug 2017 21:41:25 +0200 Subject: MethodBind: Adds operator== to compare by id --- core/object.h | 1 + 1 file changed, 1 insertion(+) diff --git a/core/object.h b/core/object.h index 9eb6cd1d56..746450ef6a 100644 --- a/core/object.h +++ b/core/object.h @@ -185,6 +185,7 @@ struct MethodInfo { uint32_t flags; int id; + 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) : (id < p_method.id); } operator Dictionary() const; -- cgit v1.2.3