mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Clear a Bullet Area's overlappingObjects vector when removing an area
from a space.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user