From e5a086fde62dfb2936ab3dec2087520c7f41c96a Mon Sep 17 00:00:00 2001 From: Shatur95 Date: Sun, 28 Mar 2021 20:00:13 +0300 Subject: [PATCH] Fix CONNECT_REFERENCE_COUNTED --- core/object/object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/object/object.cpp b/core/object/object.cpp index 413f917518f..9ca34cf6f30 100644 --- a/core/object/object.cpp +++ b/core/object/object.cpp @@ -1355,7 +1355,7 @@ void Object::_disconnect(const StringName &p_signal, const Callable &p_callable, if (!p_force) { slot->reference_count--; // by default is zero, if it was not referenced it will go below it - if (slot->reference_count >= 0) { + if (slot->reference_count > 0) { return; } }