mirror of
https://github.com/godotengine/godot.git
synced 2024-11-15 00:23:27 +00:00
parent
d71ed9d287
commit
8ebefc8cf4
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user