summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 13aa702..5db11ca 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -3453,6 +3453,10 @@ int pc_additem (struct map_session_data *sd, struct item *item_data,
{
memcpy (&sd->status.inventory[i], item_data,
sizeof (sd->status.inventory[0]));
+
+ if (item_data->equip)
+ sd->status.inventory[i].equip = 0;
+
sd->status.inventory[i].amount = amount;
sd->inventory_data[i] = data;
clif_additem (sd, i, amount, 0);