This commit is contained in:
Josh Deprez 2021-09-29 17:34:21 +10:00
parent b52ff1164c
commit c23b149a84

View file

@ -102,7 +102,7 @@ func (g *Game) printTreeRecursive(dst io.Writer, depth int, c interface{}) {
} else { } else {
fmt.Fprintf(dst, "%s%v\n", indent, c) fmt.Fprintf(dst, "%s%v\n", indent, c)
} }
for x := range g.children[c] { for x := range g.Children(c) {
g.printTreeRecursive(dst, depth+1, x) g.printTreeRecursive(dst, depth+1, x)
} }
} }