You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Merge pull request #47442 from Shatur/fix-connect-reference-counted
This commit is contained in:
@@ -1409,7 +1409,7 @@ void Object::_disconnect(const StringName &p_signal, const Callable &p_callable,
|
|||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user