Fix remnant of a generic experiment

This commit is contained in:
Josh Deprez 2022-03-17 03:42:57 +00:00
parent b4f7753a00
commit b9b8f6fd94

View file

@ -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]