diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-10-30 06:06:28 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-10-30 06:06:28 +0000 |
commit | 3fdb1c0d3de24e8d7f582b40d0a7296be6aabf2c (patch) | |
tree | d48464c0d4efa378cb3503d56aa5e18453f3916c /src/map | |
parent | 98e1d89b94e5ca1a1e24db886dbf3190b8bc7d46 (diff) | |
download | hercules-3fdb1c0d3de24e8d7f582b40d0a7296be6aabf2c.tar.gz hercules-3fdb1c0d3de24e8d7f582b40d0a7296be6aabf2c.tar.bz2 hercules-3fdb1c0d3de24e8d7f582b40d0a7296be6aabf2c.tar.xz hercules-3fdb1c0d3de24e8d7f582b40d0a7296be6aabf2c.zip |
Small cleanup of r13332 (bugreport:2368).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13337 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/script.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/map/script.c b/src/map/script.c index 9199c5047..2f2d3b5a4 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -6199,7 +6199,7 @@ BUILDIN_FUNC(successrefitem) log_pick_pc(sd, "N", sd->status.inventory[i].nameid, -1, &sd->status.inventory[i]); sd->status.inventory[i].refine++; - pc_unequipitem(sd,i,2); + pc_unequipitem(sd,i,2); // status calc will happen in pc_equipitem() below clif_refine(sd->fd,0,i,sd->status.inventory[i].refine); clif_delitem(sd,i,1); @@ -11458,11 +11458,8 @@ BUILDIN_FUNC(unequip) if( sd != NULL && num >= 1 && num <= ARRAYLENGTH(equip) ) { i = pc_checkequip(sd,equip[num-1]); - if (i >= 0) { - pc_unequipitem(sd,i,2); - status_calc_pc(sd,0); - } - return 0; + if (i >= 0) + pc_unequipitem(sd,i,1|2); } return 0; } |