diff options
Diffstat (limited to 'ecs/src/actions.rs')
-rw-r--r-- | ecs/src/actions.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecs/src/actions.rs b/ecs/src/actions.rs index 3988a77..89fd84a 100644 --- a/ecs/src/actions.rs +++ b/ecs/src/actions.rs @@ -24,7 +24,7 @@ impl<'world> Actions<'world> pub fn spawn<Comps: ComponentSequence>(&mut self, components: Comps) { self.action_queue.push(Action::Spawn( - components.into_vec(), + components.into_array().into(), EventIds { ids: Comps::added_event_ids() }, )); } @@ -50,7 +50,7 @@ impl<'world> Actions<'world> self.action_queue.push(Action::AddComponents( entity_uid, - components.into_vec(), + components.into_array().into(), EventIds { ids: Comps::added_event_ids() }, )); } |