diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-07-06 12:00:53 +0100 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-07-06 12:04:15 +0100 |
commit | a615d359e86de1739c5049d5552fb734e82fed09 (patch) | |
tree | 860eb808bd1b589a88031a05d77870642dfad4e6 /modules/bullet | |
parent | a8e330ea1974f0bc692f7efac0165142d4b01de8 (diff) |
Clear a Bullet Area's overlappingObjects vector when removing an area
from a space.
Diffstat (limited to 'modules/bullet')
-rw-r--r-- | modules/bullet/area_bullet.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/bullet/area_bullet.cpp b/modules/bullet/area_bullet.cpp index 79d8e252f0..e5e5f81d2a 100644 --- a/modules/bullet/area_bullet.cpp +++ b/modules/bullet/area_bullet.cpp @@ -174,6 +174,7 @@ void AreaBullet::reload_body() { void AreaBullet::set_space(SpaceBullet *p_space) { // Clear the old space if there is one if (space) { + overlappingObjects.clear(); isScratched = false; // Remove this object form the physics world |