aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-02-15 14:35:43 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-01-27 16:43:49 +0100
commit3ef388ad653a3ad6b3df7eb528f1f41e724bd31d (patch)
tree61f9ef25672212a98fde4e76e5851d038faabd93
parentf9ab2cfdb25eb3fcd85868a2e375326a9c8b6022 (diff)
downloadmuhqs-game-3ef388ad653a3ad6b3df7eb528f1f41e724bd31d.tar.gz
muhqs-game-3ef388ad653a3ad6b3df7eb528f1f41e724bd31d.zip
fix NPE when adding the wrong widget
-rw-r--r--go/client/game.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/client/game.go b/go/client/game.go
index b459d42a..9fb26efa 100644
--- a/go/client/game.go
+++ b/go/client/game.go
@@ -209,7 +209,7 @@ func (g *Game) initPlayerUi(player *game.Player) *Game {
g.hideStore()
}
})
- g.addWidget(g.storeView)
+ g.addWidget(g.storeButton)
x = g.storeButton.X + g.storeButton.Width/2
y = g.height - DEFAULT_BUTTON_HEIGHT