From 6cbbea94da23c7afda8d29d1bb76a5086b16296b Mon Sep 17 00:00:00 2001 From: remoitnane Date: Sun, 15 Aug 2010 12:03:57 -0700 Subject: Kludge-fix double-equipment issue to hopefully prevent new instances --- src/map/pc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/pc.c') 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); -- cgit v1.2.3-70-g09d2