You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-25 15:37:42 +00:00
Clear a Bullet Area's overlappingObjects vector when removing an area
from a space.
(cherry picked from commit a615d359e8)
This commit is contained in:
committed by
Rémi Verschelde
parent
2b4773f0cf
commit
d0fb6d6971
@@ -181,6 +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();
|
||||
isScratched = false;
|
||||
|
||||
// Remove this object form the physics world
|
||||
|
||||
Reference in New Issue
Block a user