From 3fdb1c0d3de24e8d7f582b40d0a7296be6aabf2c Mon Sep 17 00:00:00 2001 From: ultramage Date: Thu, 30 Oct 2008 06:06:28 +0000 Subject: Small cleanup of r13332 (bugreport:2368). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13337 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/map') 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; } -- cgit v1.2.3-70-g09d2