Pārlūkot izejas kodu

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

(cherry picked from commit a615d359e86de1739c5049d5552fb734e82fed09)

Marcel Admiraal 5 gadi atpakaļ
vecāks
revīzija
d0fb6d6971
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      modules/bullet/area_bullet.cpp

+ 1 - 0
modules/bullet/area_bullet.cpp

@@ -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