diff options
author | HampusM <hampus@hampusmat.com> | 2024-06-06 12:21:34 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-06-06 12:21:34 +0200 |
commit | 989bffa8ec39bf7421801129fb5b116c47ce8a35 (patch) | |
tree | f0f244049230e5be449a9e2a857fa3b72dddc190 /ecs/src/query.rs | |
parent | c962b8721aaaaf001e9599fac17596bef71e433d (diff) |
chore(ecs): remove support for specifying component to be dropped last
Diffstat (limited to 'ecs/src/query.rs')
-rw-r--r-- | ecs/src/query.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ecs/src/query.rs b/ecs/src/query.rs index 73792b3..ffab105 100644 --- a/ecs/src/query.rs +++ b/ecs/src/query.rs @@ -208,10 +208,7 @@ where self.current_entity_index = matching_entity_index + 1; Some(Comps::from_components( - matching_entity - .components - .iter() - .map(|component| &**component), + matching_entity.components.iter().map(|component| component), )) } } |