aboutsummaryrefslogtreecommitdiff
path: root/go
diff options
context:
space:
mode:
Diffstat (limited to 'go')
-rw-r--r--go/client/game.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/go/client/game.go b/go/client/game.go
index 9f440ceb..9c95deb2 100644
--- a/go/client/game.go
+++ b/go/client/game.go
@@ -210,7 +210,6 @@ func (g *Game) addPermActionChoice(perm game.Permanent, x, y int) {
}
if len(perms) > 1 {
- g.selectedObject = perms
onClick := func(c *ui.Choice, x, y int) {
g.removeChoice()
p := perms[c.GetChoosen(x, y)]
@@ -218,7 +217,6 @@ func (g *Game) addPermActionChoice(perm game.Permanent, x, y int) {
}
g.addChoice(ui.NewChoice(x, y, utils.TypedSliceToInterfaceSlice(labels), onClick))
} else {
- g.selectedObject = perms[0]
g.addActionChoice(perms[0], x, y)
}
}