summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-07-14 07:43:28 +0200
committerGitHub <noreply@github.com>2020-07-14 07:43:28 +0200
commit678368df27019930a2cb7b359ab448652eb231b8 (patch)
tree4fc625c2e6017af4e2bc62aa1f5a08aa766df112
parentdb1eb909fe1e6067743892d7544160a1a40b9e43 (diff)
parent4e987f5ab91ee0455858cf29ecebf1df050e565f (diff)
Merge pull request #40349 from volzhs/crash-overlapping-objects
Fix overlappingObjects vector crash
-rw-r--r--modules/bullet/area_bullet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bullet/area_bullet.cpp b/modules/bullet/area_bullet.cpp
index 01f068780d..edbd9565b8 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