summaryrefslogtreecommitdiff
path: root/ecs/src/component/storage.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ecs/src/component/storage.rs')
-rw-r--r--ecs/src/component/storage.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ecs/src/component/storage.rs b/ecs/src/component/storage.rs
index c407192..ffd682e 100644
--- a/ecs/src/component/storage.rs
+++ b/ecs/src/component/storage.rs
@@ -105,14 +105,14 @@ impl Storage
let archetype_id = ArchetypeId::from_components_metadata(
&components
.iter()
- .map(|component| ComponentMetadata::of(&**component))
+ .map(|component| ComponentMetadata::get(&**component))
.collect::<Vec<_>>(),
);
let comp_ids_set = create_non_opt_component_id_set(
components
.iter()
- .map(|component| ComponentMetadata::of(&**component)),
+ .map(|component| ComponentMetadata::get(&**component)),
);
let archetype_index =