Fix CONNECT_REFERENCE_COUNTED

(cherry picked from commit e5a086fde6)
This commit is contained in:
Shatur95 2021-03-28 20:00:13 +03:00 committed by Rémi Verschelde
parent d71ed9d287
commit 8ebefc8cf4
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -1540,7 +1540,7 @@ void Object::_disconnect(const StringName &p_signal, Object *p_to_object, const
if (!p_force) { if (!p_force) {
slot->reference_count--; // by default is zero, if it was not referenced it will go below it 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; return;
} }
} }