diff options
Diffstat (limited to 'go/client')
| -rw-r--r-- | go/client/keybindings.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/go/client/keybindings.go b/go/client/keybindings.go index 1dbf6bea..147afced 100644 --- a/go/client/keybindings.go +++ b/go/client/keybindings.go @@ -60,6 +60,9 @@ func (g *Game) handleKeyBindings(bindings keyBindings) (err error) { func selection(ev ui.InputEvent, g *Game) (bool, error) { x, y := ev.X, ev.Y obj := g.findObjectAt(x, y) + if obj == nil { + return false, nil + } if g.prompt != nil { if err := g.prompt.Add(obj); err != nil { |
