aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_eat.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_eat.go')
-rw-r--r--internal/game/cmd_eat.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/game/cmd_eat.go b/internal/game/cmd_eat.go
index e6a0386..f94ade3 100644
--- a/internal/game/cmd_eat.go
+++ b/internal/game/cmd_eat.go
@@ -10,7 +10,7 @@ import (
)
func (g *Game) doEat(sess *net.Session, input string) {
- p := sess.Player.(*player.Player)
+ p := sess.Player
if input == "" {
sess.WriteLine("Eat what?")
@@ -52,7 +52,7 @@ func (g *Game) doEat(sess *net.Session, input string) {
return
}
- g.CancelAction(p)
+ g.cancelAction(p)
g.consumeQueue[p.Name] = &QueuedCommand{
Session: sess,