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-08-20 15:50:10 +0200
commit259b2f2b2af8f23bc2fe193838e7f7ecfc61c23a (patch)
tree393e802e28c451cf1b0b01239169ba17e0b01cd3
parent45df9bf319d38db916ca983b8c92bb912f5ce9ee (diff)
downloadmuhqs-game-259b2f2b2af8f23bc2fe193838e7f7ecfc61c23a.tar.gz
muhqs-game-259b2f2b2af8f23bc2fe193838e7f7ecfc61c23a.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