1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

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
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;