From b213c441e42829134de7fb007c50e5a8baa4955a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mikrut?= Date: Sat, 16 Jan 2021 09:54:55 +0100 Subject: [PATCH] Fix usage of deleted element in Area::_area_inout --- scene/3d/area.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/3d/area.cpp b/scene/3d/area.cpp index ac4f40431de..367dec697e1 100644 --- a/scene/3d/area.cpp +++ b/scene/3d/area.cpp @@ -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); } }