summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-23 08:35:22 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-23 08:35:22 +0000
commite4666b4fb5100b2be3f7758cbf0d724b046a7178 (patch)
treef1f6a3fb93ca3d68864e085ac8bba357ea12f018 /src/map/clif.c
parentefac9030a63b8353237cb26cf6cc1ac272288f1e (diff)
downloadhercules-e4666b4fb5100b2be3f7758cbf0d724b046a7178.tar.gz
hercules-e4666b4fb5100b2be3f7758cbf0d724b046a7178.tar.bz2
hercules-e4666b4fb5100b2be3f7758cbf0d724b046a7178.tar.xz
hercules-e4666b4fb5100b2be3f7758cbf0d724b046a7178.zip
* Added 'setd' support for local NPC scope (') variables.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6704 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index bfd3d0779..1adff1ad9 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9384,8 +9384,8 @@ void clif_parse_NpcBuyListSend(int fd,struct map_session_data *sd)
if((nd = ((struct npc_data *)map_id2bl(sd->npc_shopid))->master_nd)){
sprintf(npc_ev, "%s::OnBuyItem", nd->exname);
for(i=0;i<n;i++){
- setd_sub(sd, "@bought_nameid", i, (void *)((int)item_list[i*2+1]));
- setd_sub(sd, "@bought_quantity", i, (void *)((int)item_list[i*2]));
+ setd_sub(NULL,sd, "@bought_nameid", i, (void *)((int)item_list[i*2+1]));
+ setd_sub(NULL,sd, "@bought_quantity", i, (void *)((int)item_list[i*2]));
}
npc_event(sd, npc_ev, 0);
fail = 0;