aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_use.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_use.go')
-rw-r--r--internal/game/cmd_use.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/game/cmd_use.go b/internal/game/cmd_use.go
index 975eddb..12dbc73 100644
--- a/internal/game/cmd_use.go
+++ b/internal/game/cmd_use.go
@@ -192,7 +192,7 @@ func (g *Game) doUseItemOnTarget(sess *net.Session, p *player.Player, itemAName,
itemAID := matchesA[0].ID
- matchesB := g.findInventoryMatches(itemBName, p)
+ var matchesB []itemMatch
objInstances := g.World.FindObjInstances(p.RoomID, itemBName)
if len(objInstances) > 0 {