summaryrefslogtreecommitdiff
path: root/src/map/charcommand.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-21 02:18:15 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-21 02:18:15 +0000
commitc7bce63ecd9fb5d44c442791c13591aebd4dbb88 (patch)
tree8afbe2d04a3ca929c0484fec61958c6b2948ae69 /src/map/charcommand.c
parent5e3de661f276eb2eb3a06bd0c4197dc847a36d50 (diff)
downloadhercules-c7bce63ecd9fb5d44c442791c13591aebd4dbb88.tar.gz
hercules-c7bce63ecd9fb5d44c442791c13591aebd4dbb88.tar.bz2
hercules-c7bce63ecd9fb5d44c442791c13591aebd4dbb88.tar.xz
hercules-c7bce63ecd9fb5d44c442791c13591aebd4dbb88.zip
* Fixed 'unequip' removing items in the wrong position (bugreport:252)
* Fixed #refine unequpping the caller's item by mistake (bugreport:265) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11534 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/charcommand.c')
-rw-r--r--src/map/charcommand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/charcommand.c b/src/map/charcommand.c
index d5f819625..f2747e6e1 100644
--- a/src/map/charcommand.c
+++ b/src/map/charcommand.c
@@ -2434,7 +2434,7 @@ int charcommand_refine(const int fd, struct map_session_data* sd, const char* co
if (pl_sd->status.inventory[i].refine != final_refine) {
pl_sd->status.inventory[i].refine = final_refine;
current_position = pl_sd->status.inventory[i].equip;
- pc_unequipitem(sd, i, 3);
+ pc_unequipitem(pl_sd, i, 3);
clif_refine(fd, 0, i, pl_sd->status.inventory[i].refine);
clif_delitem(pl_sd, i, 1);
clif_additem(pl_sd, i, 1, 0);