mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Removed unnecessary error from _area_inout
The error was previously removed from _body_inout for the same reason. Fixes #28022.
This commit is contained in:
parent
4203266923
commit
8166f8d3c8
@ -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) {
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user