From 6bc7c07444a4abcab3261b772beddcf14e33a06f Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Fri, 27 Aug 2021 15:51:19 +1000 Subject: [PATCH] yes --- engine/game.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/game.go b/engine/game.go index 810cacb..fb14165 100644 --- a/engine/game.go +++ b/engine/game.go @@ -57,8 +57,8 @@ func (g *Game) Update() error { func (g *Game) registerComponent(c interface{}, path []interface{}) error { // register in g.dex + ct := reflect.TypeOf(c) for _, b := range Behaviours { - ct := reflect.TypeOf(c) if !ct.Implements(b) { continue }