mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-07 15:28:02 +00:00
refactor(Core/Scripts): Optimize Script (#18708)
* Add files via upload * Update PlayerScript.h
This commit is contained in:
@@ -69,7 +69,7 @@ AccountScript::AccountScript(char const* name, std::vector<uint16> enabledHooks)
|
||||
{
|
||||
// If empty - enable all available hooks.
|
||||
if (enabledHooks.empty())
|
||||
for (uint16 i = 0; i < ACCOUNTHOOK_END; i++)
|
||||
for (uint16 i = 0; i < ACCOUNTHOOK_END; ++i)
|
||||
enabledHooks.emplace_back(i);
|
||||
|
||||
ScriptRegistry<AccountScript>::AddScript(this, std::move(enabledHooks));
|
||||
|
||||
Reference in New Issue
Block a user