This commit is contained in:
Josh Deprez 2021-08-27 15:51:19 +10:00
parent 78dddb4f6c
commit 6bc7c07444

View file

@ -57,8 +57,8 @@ func (g *Game) Update() error {
func (g *Game) registerComponent(c interface{}, path []interface{}) error { func (g *Game) registerComponent(c interface{}, path []interface{}) error {
// register in g.dex // register in g.dex
ct := reflect.TypeOf(c)
for _, b := range Behaviours { for _, b := range Behaviours {
ct := reflect.TypeOf(c)
if !ct.Implements(b) { if !ct.Implements(b) {
continue continue
} }