summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c3
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"));