diff options
| author | usr <usr@devuan> | 2026-08-13 14:49:29 +0200 |
|---|---|---|
| committer | usr <usr@devuan> | 2026-08-13 14:49:29 +0200 |
| commit | 874eebf5d22670993428a189acd479cd9c998e35 (patch) | |
| tree | d943032feb6b79c57c3db607abb14636a2d4a184 /input/input.go | |
| parent | 387867e161ed0be29baf2bfa2c496dd21f3662e8 (diff) | |
| parent | a5ce1401312b97fd447d00656b250571c4db4880 (diff) | |
Merge branch 'master' of ewy.one:ponger
Diffstat (limited to 'input/input.go')
| -rw-r--r-- | input/input.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/input/input.go b/input/input.go index 94f4e56..48eeb02 100644 --- a/input/input.go +++ b/input/input.go @@ -19,8 +19,8 @@ func ProcessTree(root any, ev Event) { if inp, ok := root.(Handler); ok { inp.Process(ev) } - if g, ok := root.(*ecs.GameObject); ok { - for _, c := range g.Children { + if g, ok := root.(ecs.IsGameObject); ok { + for _, c := range g.GO().Children { if c == nil { continue } |
