From 93f9f840da11b82c8a13f31f0ba5db8b10e4e9ad Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 29 Jun 2024 18:41:04 +0200 Subject: refactor(ecs): pass World ref to system run & param new functions --- ecs/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecs/src/lib.rs') 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); } } } -- cgit v1.2.3-18-g5258