You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Compare connections by object id
This commit is contained in:
@@ -351,7 +351,7 @@ bool Object::Connection::operator<(const Connection &p_conn) const {
|
|||||||
if (target == p_conn.target) {
|
if (target == p_conn.target) {
|
||||||
return method < p_conn.method;
|
return method < p_conn.method;
|
||||||
} else {
|
} else {
|
||||||
return target < p_conn.target;
|
return target->get_instance_id() < p_conn.target->get_instance_id();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return signal < p_conn.signal;
|
return signal < p_conn.signal;
|
||||||
|
|||||||
Reference in New Issue
Block a user