Skip to content

Commit 12c5e3e

Browse files
committed
remove the first world.flush_entities() in despawn
1 parent 0669dd1 commit 12c5e3e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

crates/bevy_ecs/src/world/entity_ref.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,6 @@ impl<'w> EntityWorldMut<'w> {
12971297
/// See [`World::despawn`] for more details.
12981298
pub fn despawn(self) {
12991299
let world = self.world;
1300-
world.flush_entities();
13011300
let archetype = &world.archetypes[self.location.archetype_id];
13021301

13031302
// SAFETY: Archetype cannot be mutably aliased by DeferredWorld

0 commit comments

Comments
 (0)