Fix CONNECT_REFERENCE_COUNTED
This commit is contained in:
parent
bf0ec13fee
commit
e5a086fde6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue