diff --git a/core/object.cpp b/core/object.cpp index fb77fc126ee..86ede3ce289 100644 --- a/core/object.cpp +++ b/core/object.cpp @@ -351,7 +351,7 @@ bool Object::Connection::operator<(const Connection &p_conn) const { if (target == p_conn.target) { return method < p_conn.method; } else { - return target < p_conn.target; + return target->get_instance_id() < p_conn.target->get_instance_id(); } } else { return signal < p_conn.signal;