Skip to content

Commit

Permalink
fix(cardinal): fix register systems bug (Argus-Labs#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
technicallyty committed Oct 25, 2023
1 parent 41d9706 commit 185efc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cardinal/world.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
})
Expand Down

0 comments on commit 185efc1

Please sign in to comment.