Update connection comparison operator to compare connection sources based on instance ID instead of by pointer
This commit is contained in:
parent
1ceba6e1b0
commit
ede023d4fa
|
@ -357,7 +357,7 @@ bool Object::Connection::operator<(const Connection &p_conn) const {
|
||||||
return signal < p_conn.signal;
|
return signal < p_conn.signal;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return source < p_conn.source;
|
return source->get_instance_id() < p_conn.source->get_instance_id();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Object::Connection::Connection(const Variant &p_variant) {
|
Object::Connection::Connection(const Variant &p_variant) {
|
||||||
|
|
Loading…
Reference in New Issue