diff options
Diffstat (limited to 'src/server/game/Spells/SpellScript.h')
-rw-r--r-- | src/server/game/Spells/SpellScript.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellScript.h b/src/server/game/Spells/SpellScript.h index 22b54191244..5857d63fb08 100644 --- a/src/server/game/Spells/SpellScript.h +++ b/src/server/game/Spells/SpellScript.h @@ -89,6 +89,14 @@ public: protected: virtual bool _Validate(SpellInfo const* entry); + // compile barrier to avoid instantiating operator+= in every script file + template <typename T> + class HookList : public ::HookList<T> + { + public: + HookList& operator+=(T&& t); + }; + class TC_GAME_API EffectHook { public: |