diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-15 14:35:43 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:50:10 +0200 |
| commit | 259b2f2b2af8f23bc2fe193838e7f7ecfc61c23a (patch) | |
| tree | 393e802e28c451cf1b0b01239169ba17e0b01cd3 /go/client | |
| parent | 45df9bf319d38db916ca983b8c92bb912f5ce9ee (diff) | |
| download | muhqs-game-259b2f2b2af8f23bc2fe193838e7f7ecfc61c23a.tar.gz muhqs-game-259b2f2b2af8f23bc2fe193838e7f7ecfc61c23a.zip | |
fix NPE when adding the wrong widget
Diffstat (limited to 'go/client')
| -rw-r--r-- | go/client/game.go | 2 |
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 |
