mirror of
https://github.com/godotengine/godot.git
synced 2025-03-13 23:41:08 +08:00
Merge pull request #40157 from madmiraal/fix-39765
Clear a Bullet Area's overlappingObjects vector when removing an area from a space.
This commit is contained in:
commit
b5a73c9e5c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user