Merge pull request #40349 from volzhs/crash-overlapping-objects

Fix overlappingObjects vector crash
This commit is contained in:
Rémi Verschelde 2020-07-14 07:43:28 +02:00 committed by GitHub
commit 678368df27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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