Merge pull request #28038 from CatThingy/area-error-fix
Removed unnecessary error from _area_inout
This commit is contained in:
commit
f7b5fa8cf2
2 changed files with 6 additions and 3 deletions
|
@ -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);
|
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;
|
locked = true;
|
||||||
|
|
||||||
if (area_in) {
|
if (area_in) {
|
||||||
|
|
|
@ -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);
|
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;
|
locked = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue