summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
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;