summaryrefslogtreecommitdiff
path: root/core/object
diff options
context:
space:
mode:
authorShatur95 <genaloner@gmail.com>2021-03-28 20:00:13 +0300
committerShatur95 <genaloner@gmail.com>2021-03-28 20:00:13 +0300
commite5a086fde62dfb2936ab3dec2087520c7f41c96a (patch)
tree06878e4195a6b1272ef74c629249f18e578b06df /core/object
parentbf0ec13fee05e306e3858194eae3f881204a2ce1 (diff)
Fix CONNECT_REFERENCE_COUNTED
Diffstat (limited to 'core/object')
-rw-r--r--core/object/object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/object/object.cpp b/core/object/object.cpp
index 413f917518..9ca34cf6f3 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;
}
}