diff options
author | volzhs <volzhs@gmail.com> | 2020-07-14 02:34:18 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2020-07-14 02:34:18 +0900 |
commit | 4e987f5ab91ee0455858cf29ecebf1df050e565f (patch) | |
tree | 4fc625c2e6017af4e2bc62aa1f5a08aa766df112 | |
parent | db1eb909fe1e6067743892d7544160a1a40b9e43 (diff) |
Fix overlappingObjects vector crash
use clear_overlaps() instead of clearing overlappingObjects directly
-rw-r--r-- | modules/bullet/area_bullet.cpp | 2 |
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 |