Skip to content

Commit 52fb80c

Browse files
committed
awd
1 parent 8ed7694 commit 52fb80c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

crates/bevy_ecs/src/world/entity_ref.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -943,32 +943,32 @@ fn contains_component_with_type(
943943
}
944944

945945
/// # Safety
946-
/// `entity_location` must be within bounds of the given archetype and `entity` must exist inside
947-
/// the archetype
946+
/// Caller must ensure that `relationship_id` is valid
948947
#[inline]
949-
unsafe fn get_component_with_type(
948+
unsafe fn get_component_and_ticks_with_type(
950949
world: &World,
951950
type_id: TypeId,
952951
target: Option<Entity>,
953952
entity: Entity,
954953
location: EntityLocation,
955-
) -> Option<*mut u8> {
954+
) -> Option<(*mut u8, *mut ComponentTicks)> {
956955
let component_id = world.components.get_component_id(type_id)?;
957-
get_component(world, component_id, target, entity, location)
956+
get_component_and_ticks(world, component_id, target, entity, location)
958957
}
959958

960959
/// # Safety
961-
/// Caller must ensure that `relationship_id` is valid
960+
/// `entity_location` must be within bounds of the given archetype and `entity` must exist inside
961+
/// the archetype
962962
#[inline]
963-
unsafe fn get_component_and_ticks_with_type(
963+
unsafe fn get_component_with_type(
964964
world: &World,
965965
type_id: TypeId,
966966
target: Option<Entity>,
967967
entity: Entity,
968968
location: EntityLocation,
969-
) -> Option<(*mut u8, *mut ComponentTicks)> {
969+
) -> Option<*mut u8> {
970970
let component_id = world.components.get_component_id(type_id)?;
971-
get_component_and_ticks(world, component_id, target, entity, location)
971+
get_component(world, component_id, target, entity, location)
972972
}
973973

974974
fn contains_component(

0 commit comments

Comments
 (0)