summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-01 00:50:22 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-01 00:50:22 +0000
commit743c2576cca728f2313aa20d7f9a2d2b97257ecc (patch)
tree10ed50ce06494bdaf6312bf5473305f6cc252913 /src
parentbb90bf6cc9de4b73400abd5db3dba557ec2f4158 (diff)
downloadhercules-743c2576cca728f2313aa20d7f9a2d2b97257ecc.tar.gz
hercules-743c2576cca728f2313aa20d7f9a2d2b97257ecc.tar.bz2
hercules-743c2576cca728f2313aa20d7f9a2d2b97257ecc.tar.xz
hercules-743c2576cca728f2313aa20d7f9a2d2b97257ecc.zip
[Fixed]:
- Restoration and saving of sd->npc_id must be done every time. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6904 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-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;
}
}