From 185efc1b3bed4c777618c78a222d0a61e17da81f Mon Sep 17 00:00:00 2001 From: Tyler <48813565+technicallyty@users.noreply.github.com> Date: Tue, 24 Oct 2023 21:36:34 -0700 Subject: [PATCH] fix(cardinal): fix register systems bug (#352) --- cardinal/world.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, }) })