diff options
Diffstat (limited to 'ecs/src/actions.rs')
-rw-r--r-- | ecs/src/actions.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ecs/src/actions.rs b/ecs/src/actions.rs index c062472..3988a77 100644 --- a/ecs/src/actions.rs +++ b/ecs/src/actions.rs @@ -44,7 +44,7 @@ impl<'world> Actions<'world> { debug_assert_eq!(entity_uid.kind(), UidKind::Entity); - if Comps::metadata().len() == 0 { + if Comps::COUNT == 0 { return; } @@ -62,13 +62,13 @@ impl<'world> Actions<'world> { debug_assert_eq!(entity_uid.kind(), UidKind::Entity); - if Comps::metadata().len() == 0 { + if Comps::COUNT == 0 { return; } self.action_queue.push(Action::RemoveComponents( entity_uid, - Comps::metadata(), + Comps::metadata().into_iter().collect(), EventIds { ids: Comps::removed_event_ids() }, )); } |