diff options
author | remoitnane <remoit(DOT)nane(AT)gmail(DOT)com> | 2010-08-15 12:03:57 -0700 |
---|---|---|
committer | remoitnane <remoit(DOT)nane(AT)gmail(DOT)com> | 2010-08-15 12:03:57 -0700 |
commit | 6cbbea94da23c7afda8d29d1bb76a5086b16296b (patch) | |
tree | 7c60320e6384d6c0972bd8e177ce1d24bde3fc83 | |
parent | 20eaa2c27a7110faa22fa1fb84344ab949133133 (diff) | |
download | tmwa-6cbbea94da23c7afda8d29d1bb76a5086b16296b.tar.gz tmwa-6cbbea94da23c7afda8d29d1bb76a5086b16296b.tar.bz2 tmwa-6cbbea94da23c7afda8d29d1bb76a5086b16296b.tar.xz tmwa-6cbbea94da23c7afda8d29d1bb76a5086b16296b.zip |
Kludge-fix double-equipment issue to hopefully prevent new instances
-rw-r--r-- | src/map/pc.c | 4 |
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); |