From 7000632810d90fe759651ec16b2feebb15bbd32d Mon Sep 17 00:00:00 2001 From: Lance Date: Sun, 28 May 2006 14:11:01 +0000 Subject: - 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 --- src/map/script.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/map') 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; -- cgit v1.2.3-70-g09d2