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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 95b97ac9f..932252cde 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -11475,8 +11475,8 @@ int run_script(struct script_code *rootscript,int pos,int rid,int oid)
bck_scriptstate = sd->npc_scriptstate;
bck_stack = sd->stack;
sd->stack = NULL;
- bck_npcid = sd->npc_id;
}
+ bck_npcid = sd->npc_id;
sd->npc_id = oid;
}
}