We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0669dd1 commit 08aa6a1Copy full SHA for 08aa6a1
crates/bevy_ecs/src/observer/mod.rs
@@ -1176,6 +1176,7 @@ mod tests {
1176
1177
let ent = world.spawn(A).id();
1178
1179
+ let foo = world.entities().reserve_entity();
1180
// Despawn our entity, which runs the OnRemove observer and allocates a
1181
// new Entity.
1182
// Should not panic - if it does, then Entities was not flushed properly
crates/bevy_ecs/src/world/entity_ref.rs
@@ -1297,7 +1297,6 @@ impl<'w> EntityWorldMut<'w> {
1297
/// See [`World::despawn`] for more details.
1298
pub fn despawn(self) {
1299
let world = self.world;
1300
- world.flush_entities();
1301
let archetype = &world.archetypes[self.location.archetype_id];
1302
1303
// SAFETY: Archetype cannot be mutably aliased by DeferredWorld
0 commit comments