summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-28 14:11:01 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-28 14:11:01 +0000
commit7000632810d90fe759651ec16b2feebb15bbd32d (patch)
tree15af840404364c7518411755c23baff02b954cfb /src/map/script.c
parent701a7c08b373ea338746199cbae3c67444d1f8ae (diff)
downloadhercules-7000632810d90fe759651ec16b2feebb15bbd32d.tar.gz
hercules-7000632810d90fe759651ec16b2feebb15bbd32d.tar.bz2
hercules-7000632810d90fe759651ec16b2feebb15bbd32d.tar.xz
hercules-7000632810d90fe759651ec16b2feebb15bbd32d.zip
- Reverted buildin_setd to use NULL as reference.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6802 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 7bae76088..c4d79e7a1 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -9922,7 +9922,6 @@ void setd_sub(struct script_state *st, struct map_session_data *sd, char *varnam
int buildin_setd(struct script_state *st)
{
struct map_session_data *sd=NULL;
- TBL_NPC *nd = st->oid? ((TBL_NPC *)map_id2bl(st->oid)): NULL;
char varname[100], *buffer;
char *value;
int elem;
@@ -9936,9 +9935,9 @@ int buildin_setd(struct script_state *st)
sd = script_rid2sd(st);
if(varname[strlen(varname)-1] != '$') {
- setd_sub(st,sd, varname, elem, (void *)atoi(value),nd?&nd->u.scr.script->script_vars:NULL);
+ setd_sub(st,sd, varname, elem, (void *)atoi(value),NULL);
} else {
- setd_sub(st,sd, varname, elem, (void *)value,nd?&nd->u.scr.script->script_vars:NULL);
+ setd_sub(st,sd, varname, elem, (void *)value,NULL);
}
return 0;