From ba32ccc928d8f6d10d067a0e333dc481c19e7b75 Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Tue, 7 Feb 2023 00:18:57 +0100 Subject: [PATCH] Added two missing timer function names --- src/map/npc.cpp | 3 +++ src/map/script.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/map/npc.cpp b/src/map/npc.cpp index de9c0868a0..374365eca5 100644 --- a/src/map/npc.cpp +++ b/src/map/npc.cpp @@ -6214,6 +6214,9 @@ void do_init_npc(void){ add_timer_func_list(npc_event_do_clock,"npc_event_do_clock"); add_timer_func_list(npc_timerevent,"npc_timerevent"); add_timer_func_list( npc_dynamicnpc_removal_timer, "npc_dynamicnpc_removal_timer" ); +#ifdef SECURE_NPCTIMEOUT + add_timer_func_list( npc_secure_timeout_timer, "npc_secure_timeout_timer" ); +#endif // Init dummy NPC fake_nd = npc_create_npc( -1, 0, 0 ); diff --git a/src/map/script.cpp b/src/map/script.cpp index bc522a7807..c1e1552dea 100644 --- a/src/map/script.cpp +++ b/src/map/script.cpp @@ -4847,6 +4847,8 @@ void do_init_script(void) { stack_ers = ers_new(sizeof(struct script_stack), "script.cpp::script_stack", ERS_OPT_FLEX_CHUNK); array_ers = ers_new(sizeof(struct script_array), "script.cpp:array_ers", ERS_CLEAN_OPTIONS); + add_timer_func_list( run_script_timer, "run_script_timer" ); + ers_chunk_size(st_ers, 10); ers_chunk_size(stack_ers, 10);