aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_smith.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_smith.go')
-rw-r--r--internal/game/cmd_smith.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/game/cmd_smith.go b/internal/game/cmd_smith.go
index b539640..067d251 100644
--- a/internal/game/cmd_smith.go
+++ b/internal/game/cmd_smith.go
@@ -11,8 +11,8 @@ import (
)
func (g *Game) doSmith(sess *net.Session, input string) {
- p := sess.Player.(*player.Player)
- g.CancelAction(p)
+ p := sess.Player
+ g.cancelAction(p)
stationDefID, _ := g.findStation(p.RoomID, []string{"anvil"})
if stationDefID == "" {