Merge pull request #28038 from CatThingy/area-error-fix

Removed unnecessary error from _area_inout
This commit is contained in:
Rémi Verschelde 2019-04-16 10:35:29 +02:00 committed by GitHub
commit f7b5fa8cf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;