diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-23 08:35:22 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-23 08:35:22 +0000 |
commit | e4666b4fb5100b2be3f7758cbf0d724b046a7178 (patch) | |
tree | f1f6a3fb93ca3d68864e085ac8bba357ea12f018 /src/map/npc.c | |
parent | efac9030a63b8353237cb26cf6cc1ac272288f1e (diff) | |
download | hercules-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/npc.c')
-rw-r--r-- | src/map/npc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index f68fa4e49..953eccc27 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1267,8 +1267,8 @@ int npc_selllist(struct map_session_data *sd,int n,unsigned short *item_list) log_pick(sd, "S", 0, nameid, qty, &sd->status.inventory[idx]);
if(nd) {
- setd_sub(sd, "@sold_nameid", i, (void *)(int)sd->status.inventory[idx].nameid);
- setd_sub(sd, "@sold_quantity", i, (void *)(int)qty);
+ setd_sub(NULL,sd, "@sold_nameid", i, (void *)(int)sd->status.inventory[idx].nameid);
+ setd_sub(NULL,sd, "@sold_quantity", i, (void *)(int)qty);
}
itemamount+=qty;
pc_delitem(sd,idx,qty,0);
|