diff options
author | shennetsind <ind@henn.et> | 2013-06-15 04:59:43 -0300 |
---|---|---|
committer | Euphy <euphy@rathena.org> | 2013-06-15 15:58:50 -0400 |
commit | 0b532e2ff4b7ff94db27da4e841fd25f0ff1a159 (patch) | |
tree | eb837e136170fcd499196cbfa8d07ea00a4fad90 /src/map/npc.c | |
parent | f46f552f954a45387bffd6d7f672fb58100c9593 (diff) | |
download | hercules-0b532e2ff4b7ff94db27da4e841fd25f0ff1a159.tar.gz hercules-0b532e2ff4b7ff94db27da4e841fd25f0ff1a159.tar.bz2 hercules-0b532e2ff4b7ff94db27da4e841fd25f0ff1a159.tar.xz hercules-0b532e2ff4b7ff94db27da4e841fd25f0ff1a159.zip |
Fixed Bug #7367
http://hercules.ws/board/tracker/issue-7367-error-vdb-destroy-during-shutting-down-of-server/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index f4027096c..46e6d0fd2 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1867,6 +1867,7 @@ int npc_unload(struct npc_data* nd, bool single) { aFree(nd->u.scr.timer_event); if (nd->src_id == 0) { if(nd->u.scr.script) { + script_stop_instances(nd->bl.id); script_free_code(nd->u.scr.script); nd->u.scr.script = NULL; } @@ -1885,8 +1886,6 @@ int npc_unload(struct npc_data* nd, bool single) { nd->ud = NULL; } - script_stop_sleeptimers(nd->bl.id); - aFree(nd); return 0; |