summaryrefslogtreecommitdiff
path: root/ecs/src/lib.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-06-29 18:41:04 +0200
committerHampusM <hampus@hampusmat.com>2024-06-29 18:41:04 +0200
commit93f9f840da11b82c8a13f31f0ba5db8b10e4e9ad (patch)
treef92798d7c1efcaa1b4e8d44215c7e3459f349498 /ecs/src/lib.rs
parent4793e4411d98d97f879023dc072f3847201d49da (diff)
refactor(ecs): pass World ref to system run & param new functions
Diffstat (limited to 'ecs/src/lib.rs')
-rw-r--r--ecs/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ecs/src/lib.rs b/ecs/src/lib.rs
index 1f745b9..a33d72e 100644
--- a/ecs/src/lib.rs
+++ b/ecs/src/lib.rs
@@ -210,9 +210,9 @@ impl World
for system_index in system_indices {
let system = self.systems.get(*system_index).unwrap();
- // SAFETY: The world data lives long enough
+ // SAFETY: The world lives long enough
unsafe {
- system.run(&self.data);
+ system.run(&self);
}
}
}