Merge pull request #22933 from SeleckyErik/issue-9148

Fixed non-monitorable areas triggering overlap (reopened)
This commit is contained in:
Juan Linietsky 2018-11-01 12:39:50 -03:00 committed by GitHub
commit e52b439eaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,10 +147,10 @@ Area2Pair2DSW::~Area2Pair2DSW() {
if (colliding) {
if (area_b->has_area_monitor_callback() && area_a->is_monitorable())
if (area_b->has_area_monitor_callback())
area_b->remove_area_from_query(area_a, shape_a, shape_b);
if (area_a->has_area_monitor_callback() && area_b->is_monitorable())
if (area_a->has_area_monitor_callback())
area_a->remove_area_from_query(area_b, shape_b, shape_a);
}