Quellcode durchsuchen

Clear a Bullet Area's overlappingObjects vector when removing an area
from a space.

Marcel Admiraal vor 5 Jahren
Ursprung
Commit
a615d359e8
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  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) {
 void AreaBullet::set_space(SpaceBullet *p_space) {
 	// Clear the old space if there is one
 	// Clear the old space if there is one
 	if (space) {
 	if (space) {
+		overlappingObjects.clear();
 		isScratched = false;
 		isScratched = false;
 
 
 		// Remove this object form the physics world
 		// Remove this object form the physics world