aboutsummaryrefslogtreecommitdiff
path: root/internal/game/act_effects.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/act_effects.go')
-rw-r--r--internal/game/act_effects.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/game/act_effects.go b/internal/game/act_effects.go
index e51deab..e175c8f 100644
--- a/internal/game/act_effects.go
+++ b/internal/game/act_effects.go
@@ -292,7 +292,7 @@ func (g *Game) giveTriggerDrop(sess *net.Session, p *player.Player, drop *behavi
return
}
- p.SetInvSlot(freeSlot, &player.InventorySlot{ItemID: drop.ItemID, Quantity: qty})
+ p.SetInvSlot(freeSlot, g.newInventorySlot(drop.ItemID, qty))
sess.WriteLine(fmt.Sprintf("You receive %s.", g.itemColorize(sess, lootDef, name)))
g.saveCharacter(p)
}