summaryrefslogtreecommitdiff
path: root/src/map/script.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/script.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/script.c')
-rw-r--r--src/map/script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index ca29ebb71..c06a69a60 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -6907,7 +6907,7 @@ BUILDIN_FUNC(successrefitem)
ep=sd->status.inventory[i].equip;
//Logs items, got from (N)PC scripts [Lupus]
- log_pick_pc(sd, LOG_TYPE_SCRIPT, sd->status.inventory[i].nameid, -1, &sd->status.inventory[i]);
+ log_pick_pc(sd, LOG_TYPE_SCRIPT, -1, &sd->status.inventory[i]);
sd->status.inventory[i].refine++;
pc_unequipitem(sd,i,2); // status calc will happen in pc_equipitem() below
@@ -6916,7 +6916,7 @@ BUILDIN_FUNC(successrefitem)
clif_delitem(sd,i,1,3);
//Logs items, got from (N)PC scripts [Lupus]
- log_pick_pc(sd, LOG_TYPE_SCRIPT, sd->status.inventory[i].nameid, 1, &sd->status.inventory[i]);
+ log_pick_pc(sd, LOG_TYPE_SCRIPT, 1, &sd->status.inventory[i]);
clif_additem(sd,i,1,0);
pc_equipitem(sd,i,ep);