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

Removed unnecessary error from _area_inout
This commit is contained in:
Rémi Verschelde authored and GitHub committed 2019-04-16 10:35:29 +02:00
commit f7b5fa8cf2
2 files changed
+6 -3

No files matched your search

+3 -2
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) {
+3 -1
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;