summaryrefslogtreecommitdiff
path: root/ecs/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ecs/src/lib.rs')
-rw-r--r--ecs/src/lib.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/ecs/src/lib.rs b/ecs/src/lib.rs
index 0c2197c..77d40db 100644
--- a/ecs/src/lib.rs
+++ b/ecs/src/lib.rs
@@ -425,9 +425,7 @@ impl World
for action in action_queue_lock.drain(..) {
match action {
- Action::Spawn(components) => {
- let new_entity_uid = Uid::new_unique(UidKind::Entity);
-
+ Action::Spawn(new_entity_uid, components) => {
if let Err(err) =
self.data.component_storage.create_entity(new_entity_uid)
{