From 260e52050562281a90b970c44e8816afb5f4dbaf Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 20 Jan 2023 12:00:32 +0100 Subject: intermediate commit * Add static analysis and improve Makefile * Implement hints from static code analysis --- go/ui/mapView.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'go/ui/mapView.go') diff --git a/go/ui/mapView.go b/go/ui/mapView.go index 43ea0f01..39c92ae4 100644 --- a/go/ui/mapView.go +++ b/go/ui/mapView.go @@ -98,7 +98,7 @@ func (vw *MapView) drawMapLayer(screen *ebiten.Image) { x_px, y_px := 0.0, 0.0 for y := 0; y < len(vw.gameState.Map.Tiles); y++ { for x := 0; x < len(vw.gameState.Map.Tiles[y]); x++ { - pos := game.Position{x, y} + pos := game.Position{X: x, Y: y} tile := vw.gameState.Map.TileAt(pos) tileImg := assets.GetTile(tile.Raw) -- cgit v1.2.3