Fix usage of deleted element in Area::_area_inout
This commit is contained in:
parent
029d2568c3
commit
b213c441e4
1 changed files with 1 additions and 1 deletions
|
@ -385,7 +385,7 @@ void Area::_area_inout(int p_status, const RID &p_area, int p_instance, int p_ar
|
||||||
if (node) {
|
if (node) {
|
||||||
node->disconnect(SceneStringNames::get_singleton()->tree_entered, this, SceneStringNames::get_singleton()->_area_enter_tree);
|
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);
|
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);
|
emit_signal(SceneStringNames::get_singleton()->area_exited, obj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue