From 680b2d5269de4863985f319ea48b7052fa41c6d0 Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Fri, 23 Jul 2021 17:27:10 +1000 Subject: [PATCH] yes --- engine/game.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/game.go b/engine/game.go index 1a98a0c..aa27e05 100644 --- a/engine/game.go +++ b/engine/game.go @@ -54,7 +54,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (w, h int) { // Sort sorts the components by Z position. // Non-Drawers are sorted before all Drawers. func (g *Game) Sort() { - // SliceStable to avoid z-fighting (among Non-Drawers and equal Drawers) + // Stable sort to avoid z-fighting (among Non-Drawers and equal Drawers) sort.SliceStable(g.Components, func(i, j int) bool { a, aok := g.Components[i].(Drawer) b, bok := g.Components[j].(Drawer)