diff options
| author | CatThingy <andyc.andychen@gmail.com> | 2019-04-14 19:31:51 -0700 |
|---|---|---|
| committer | CatThingy <andyc.andychen@gmail.com> | 2019-04-15 09:19:30 -0700 |
| commit | 8166f8d3c8259786d2c35db3eb47baedc6c4ce8b (patch) | |
| tree | 2a0a9f0188a93bfca5df1dc5424a885457841bbd /scene/2d/area_2d.cpp | |
| parent | 42032669238bdc807bc7b8f03fff87e6cb5847f1 (diff) | |
| download | redot-engine-8166f8d3c8259786d2c35db3eb47baedc6c4ce8b.tar.gz | |
Removed unnecessary error from _area_inout
The error was previously removed from _body_inout
for the same reason. Fixes #28022.
Diffstat (limited to 'scene/2d/area_2d.cpp')
| -rw-r--r-- | scene/2d/area_2d.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scene/2d/area_2d.cpp b/scene/2d/area_2d.cpp index 2a225e5797..b322cfe8f1 100644 --- a/scene/2d/area_2d.cpp +++ b/scene/2d/area_2d.cpp @@ -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) { |
