Merge pull request #45228 from qarmin/fix_missing_area_in_out

[3.2] Remove usage of deleted element in Area::_area_inout
This commit is contained in:
Rémi Verschelde 2021-01-16 10:47:54 +01:00 committed by GitHub
commit 16825b5df9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -385,7 +385,7 @@ void Area::_area_inout(int p_status, const RID &p_area, int p_instance, int p_ar
if (node) {
node->disconnect(SceneStringNames::get_singleton()->tree_entered, this, SceneStringNames::get_singleton()->_area_enter_tree);
node->disconnect(SceneStringNames::get_singleton()->tree_exiting, this, SceneStringNames::get_singleton()->_area_exit_tree);
if (E->get().in_tree) {
if (in_tree) {
emit_signal(SceneStringNames::get_singleton()->area_exited, obj);
}
}