Fix overlappingObjects vector crash
use clear_overlaps() instead of clearing overlappingObjects directly
This commit is contained in:
parent
db1eb909fe
commit
4e987f5ab9
|
@ -174,7 +174,7 @@ void AreaBullet::do_reload_body() {
|
|||
void AreaBullet::set_space(SpaceBullet *p_space) {
|
||||
// Clear the old space if there is one
|
||||
if (space) {
|
||||
overlappingObjects.clear();
|
||||
clear_overlaps(false);
|
||||
isScratched = false;
|
||||
|
||||
// Remove this object form the physics world
|
||||
|
|
Loading…
Reference in New Issue