Fix remnant of a generic experiment
This commit is contained in:
parent
b4f7753a00
commit
b9b8f6fd94
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ func (g *Game) Parent(c any) any {
|
||||||
|
|
||||||
// Children returns the direct subcomponents of the given component, or nil if
|
// Children returns the direct subcomponents of the given component, or nil if
|
||||||
// there are none. This only returns sensible values for registered components.
|
// there are none. This only returns sensible values for registered components.
|
||||||
func (g *Game) Children(c any) *Container[any] {
|
func (g *Game) Children(c any) *Container {
|
||||||
g.dbmu.RLock()
|
g.dbmu.RLock()
|
||||||
defer g.dbmu.RUnlock()
|
defer g.dbmu.RUnlock()
|
||||||
return g.children[c]
|
return g.children[c]
|
||||||
|
|
Loading…
Reference in a new issue