Removed unnecessary error from _area_inout

The error was previously removed from _body_inout
for the same reason. Fixes #28022.
This commit is contained in:
CatThingy 2019-04-14 19:31:51 -07:00
parent 4203266923
commit 8166f8d3c8
2 changed files with 6 additions and 3 deletions

View file

@ -261,8 +261,9 @@ void Area2D::_area_inout(int p_status, const RID &p_area, int p_instance, int p_
Map<ObjectID, AreaState>::Element *E = area_map.find(objid);
ERR_FAIL_COND(!area_in && !E);
if (!area_in && !E) {
return; //likely removed from the tree
}
locked = true;
if (area_in) {

View file

@ -356,7 +356,9 @@ void Area::_area_inout(int p_status, const RID &p_area, int p_instance, int p_ar
Map<ObjectID, AreaState>::Element *E = area_map.find(objid);
ERR_FAIL_COND(!area_in && !E);
if (!area_in && !E) {
return; //likely removed from the tree
}
locked = true;