aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_search.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_search.go')
-rw-r--r--internal/game/cmd_search.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/game/cmd_search.go b/internal/game/cmd_search.go
index cf37c90..cc22d49 100644
--- a/internal/game/cmd_search.go
+++ b/internal/game/cmd_search.go
@@ -5,12 +5,11 @@ import (
"strings"
"thehouseoficarus/internal/net"
- "thehouseoficarus/internal/player"
)
func (g *Game) doSearch(sess *net.Session, input string) {
- p := sess.Player.(*player.Player)
- g.CancelAction(p)
+ p := sess.Player
+ g.cancelAction(p)
lower := strings.ToLower(strings.TrimSpace(input))
if lower == "" {