aboutsummaryrefslogtreecommitdiff
path: root/go/ui/mapView.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/ui/mapView.go')
-rw-r--r--go/ui/mapView.go2
1 files changed, 1 insertions, 1 deletions
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)