From 20ec596a5d80a538469bb4b58d25c95369828aa6 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 (cherry picked from commit ede023d4fa748112ec4a6f340b9601bffd2d1423) --- core/object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/object.cpp b/core/object.cpp index a7a98b56629..ff07aa5359a 100644 --- a/core/object.cpp +++ b/core/object.cpp @@ -361,7 +361,7 @@ bool Object::Connection::operator<(const Connection &p_conn) const { } else 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) {