We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5785451 commit a71bddaCopy full SHA for a71bdda
crates/bevy_ecs/src/world/entity_ref.rs
@@ -664,7 +664,6 @@ impl<'w> EntityMut<'w> {
664
#[inline]
665
pub fn get_by_id(&self, component_id: ComponentId) -> Option<Ptr<'_>> {
666
let info = self.world.components().get_info(component_id)?;
667
- self.world.components().get_info(component_id)?;
668
// SAFETY:
669
// - entity_location is valid
670
// - component_id is valid as checked by the line above
0 commit comments