From ede023d4fa748112ec4a6f340b9601bffd2d1423 Mon Sep 17 00:00:00 2001 From: David Socha Date: Tue, 21 Sep 2021 01:38:11 -0500 Subject: [PATCH] Update connection comparison operator to compare connection sources based on instance ID instead of by pointer --- core/object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/object.cpp b/core/object.cpp index 86ede3ce289..ed20874c7fe 100644 --- a/core/object.cpp +++ b/core/object.cpp @@ -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) {