Skip to content

Commit

Permalink
Fix overlappingObjects vector crash
Browse files Browse the repository at this point in the history
use clear_overlaps() instead of clearing overlappingObjects directly
  • Loading branch information
volzhs committed Jul 13, 2020
1 parent db1eb90 commit 4e987f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/bullet/area_bullet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e987f5

Please sign in to comment.