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 }