From cfda32add037a5f4f28150d73f69a2b178db3066 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 (cherry picked from commit 4e987f5ab91ee0455858cf29ecebf1df050e565f) --- 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 4f332b7f505..d327eca5dec 100644 --- a/modules/bullet/area_bullet.cpp +++ b/modules/bullet/area_bullet.cpp @@ -181,7 +181,7 @@ void AreaBullet::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