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

This commit is contained in:
David Socha 2021-09-21 01:38:11 -05:00 committed by GitHub
parent 1ceba6e1b0
commit ede023d4fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -357,7 +357,7 @@ bool Object::Connection::operator<(const Connection &p_conn) const {
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) {