commit d569bbbf0b77482669b4f97e945e015d61943dc0
parent 86e4a1f17bbab1ebe31401766e02ad7a54e5bad1
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Fri, 16 Jun 2023 23:25:39 -0700
typo
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/web/handlers/chess.go b/pkg/web/handlers/chess.go
@@ -766,7 +766,7 @@ Loop:
return nil
}
-func renderShowVisiblePieceInPosition(styles *StylesBuilder, animationIdx *int, visiblePieces hashset.HashSet[chess.Square],
+func renderShowVisiblePieceInPosition(styles *StylesBuilder, animationIdx *int, visiblePieces *hashset.HashSet[chess.Square],
squareMap map[chess.Square]chess.Piece, piecesCache map[chess.Square]string, piecesCache1 map[string]chess.Square, isFlipped bool) {
for _, newSq := range visiblePieces.ToArray() {
sqID := piecesCache[newSq] // Get ID of piece on square newSq