diff --git a/cardinal/world.go b/cardinal/world.go index b978315fd..9141ae7c1 100644 --- a/cardinal/world.go +++ b/cardinal/world.go @@ -226,8 +226,9 @@ func (w *World) ShutDown() error { func RegisterSystems(w *World, systems ...System) { for _, system := range systems { + sys := system w.implWorld.AddSystem(func(wCtx ecs.WorldContext) error { - return system(&worldContext{ + return sys(&worldContext{ implContext: wCtx, }) })