diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-07 17:59:25 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-07 17:59:25 +0000 |
commit | 8fd7ea9e4f38bd02b99e4fa42fc2003390a25adc (patch) | |
tree | 3298beebedd59756a671560128b7ce1e4d9b78ea /src/map/npc.c | |
parent | f11b8f4bb3b1c047e0b1dfc9585f5b6c49ee8f65 (diff) | |
download | hercules-8fd7ea9e4f38bd02b99e4fa42fc2003390a25adc.tar.gz hercules-8fd7ea9e4f38bd02b99e4fa42fc2003390a25adc.tar.bz2 hercules-8fd7ea9e4f38bd02b99e4fa42fc2003390a25adc.tar.xz hercules-8fd7ea9e4f38bd02b99e4fa42fc2003390a25adc.zip |
- Fixed the sleep timers not being removed when the an npc was being unloaded and when reloading scripts.
Ref: http://www.eathena.ws/board/index.php?showtopic=131464
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9629 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index b90886da6..802bc3b4a 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1471,6 +1471,7 @@ int npc_unload(struct npc_data *nd) } } } + script_stop_sleeptimers(nd->bl.id); aFree(nd); return 0; @@ -2922,7 +2923,7 @@ int npc_reload (void) //Re-read the NPC Script Events cache. npc_read_event_script(); - + //Execute the OnInit event for freshly loaded npcs. [Skotlex] ShowStatus("Event '"CL_WHITE"OnInit"CL_RESET"' executed with '" CL_WHITE"%d"CL_RESET"' NPCs.\n",npc_event_doall("OnInit")); |