Update connection comparison operator to compare connection sources based on instance ID instead of by pointer

(cherry picked from commit ede023d4fa)
This commit is contained in:
David Socha 2021-09-21 01:38:11 -05:00 committed by Rémi Verschelde
parent b13bbba80b
commit 20ec596a5d
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ bool Object::Connection::operator<(const Connection &p_conn) const {
} else
return signal < p_conn.signal;
} else {
return source < p_conn.source;
return source->get_instance_id() < p_conn.source->get_instance_id();
}
}
Object::Connection::Connection(const Variant &p_variant) {