summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorgepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-18 00:45:35 +0000
committergepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-18 00:45:35 +0000
commit7bdb98374ade0b0d2aad8e2f85b0c799112c170d (patch)
tree25b738619cf960e7bfc933cf5beecd958cf240f8 /src/map/skill.c
parentc3743d84907e4aea48a02d43f453b957287238e4 (diff)
downloadhercules-7bdb98374ade0b0d2aad8e2f85b0c799112c170d.tar.gz
hercules-7bdb98374ade0b0d2aad8e2f85b0c799112c170d.tar.bz2
hercules-7bdb98374ade0b0d2aad8e2f85b0c799112c170d.tar.xz
hercules-7bdb98374ade0b0d2aad8e2f85b0c799112c170d.zip
Reorganized picklog functions a bit to reuse some common code.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15486 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index ad9580f5a..bd3bf3571 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -11779,9 +11779,9 @@ void skill_weaponrefine (struct map_session_data *sd, int idx)
pc_delitem(sd, i, 1, 0, 0, LOG_TYPE_OTHER);
if (per > rnd() % 100) {
- log_pick_pc(sd, LOG_TYPE_OTHER, item->nameid, -1, item);
+ log_pick_pc(sd, LOG_TYPE_OTHER, -1, item);
item->refine++;
- log_pick_pc(sd, LOG_TYPE_OTHER, item->nameid, 1, item);
+ log_pick_pc(sd, LOG_TYPE_OTHER, 1, item);
if(item->equip) {
ep = item->equip;
pc_unequipitem(sd,idx,3);