You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Fix overlappingObjects vector crash
use clear_overlaps() instead of clearing overlappingObjects directly
(cherry picked from commit 4e987f5ab9)
This commit is contained in:
@@ -181,7 +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();
|
||||
clear_overlaps(false);
|
||||
isScratched = false;
|
||||
|
||||
// Remove this object form the physics world
|
||||
|
||||
Reference in New Issue
Block a user