This commit is contained in:
Josh Deprez 2021-09-01 21:50:58 +10:00
parent 9785b556e5
commit d89a1c2e71

View file

@ -127,6 +127,7 @@ func (g *Game) Update() error {
} }
// Update everything that is not disabled. // Update everything that is not disabled.
// TODO: do it in a fixed order? map essentially randomises iteration order
for u := range g.Query(g.Ident(), UpdaterType) { for u := range g.Query(g.Ident(), UpdaterType) {
// Skip g (note g satisfies Updater, so this would infinitely recurse) // Skip g (note g satisfies Updater, so this would infinitely recurse)
if u == g { if u == g {