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
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue