From d9840057b14b4fafa28fdb8f2c870fc17fc22211 Mon Sep 17 00:00:00 2001 From: Ludwig Date: Sat, 22 Feb 2025 11:42:31 +0100 Subject: [PATCH] add enabled hook lists for performance improvement --- src/mod_cta_switch_script.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mod_cta_switch_script.cpp b/src/mod_cta_switch_script.cpp index 7c7fbcf..3424245 100644 --- a/src/mod_cta_switch_script.cpp +++ b/src/mod_cta_switch_script.cpp @@ -18,7 +18,10 @@ enum EventIds class cta_switch_event_script : public GameEventScript { public: - cta_switch_event_script() : GameEventScript("cta_switch_event_script") { } + cta_switch_event_script() : GameEventScript("cta_switch_event_script", { + GAMEEVENTHOOK_ON_START, + GAMEEVENTHOOK_ON_EVENT_CHECK + }) { } void OnStart(uint16 eventId) override {