From 4e987f5ab91ee0455858cf29ecebf1df050e565f Mon Sep 17 00:00:00 2001 From: volzhs Date: Tue, 14 Jul 2020 02:34:18 +0900 Subject: [PATCH] Fix overlappingObjects vector crash use clear_overlaps() instead of clearing overlappingObjects directly --- modules/bullet/area_bullet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/bullet/area_bullet.cpp b/modules/bullet/area_bullet.cpp index 01f068780da..edbd9565b8c 100644 --- a/modules/bullet/area_bullet.cpp +++ b/modules/bullet/area_bullet.cpp @@ -174,7 +174,7 @@ void AreaBullet::do_reload_body() { void AreaBullet::set_space(SpaceBullet *p_space) { // Clear the old space if there is one if (space) { - overlappingObjects.clear(); + clear_overlaps(false); isScratched = false; // Remove this object form the physics world