Sfoglia il codice sorgente

Merge pull request #40157 from madmiraal/fix-39765

Clear a Bullet Area's overlappingObjects vector when removing an area from a space.
Rémi Verschelde 5 anni fa
parent
commit
b5a73c9e5c
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      modules/bullet/area_bullet.cpp

+ 1 - 0
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