diff options
| author | ZhengPeiRu21 <98835050+ZhengPeiRu21@users.noreply.github.com> | 2022-09-21 05:42:56 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-21 07:42:56 -0400 |
| commit | d9390e34b4384dda4b1a75d563acedc4116a7a16 (patch) | |
| tree | 038fe10738387d4e46bd74898b163938c3d4356b /src/server/game/Scripting/ScriptDefines | |
| parent | 9819b2d700ca1d7d22cbb743f39b84ddf7810af7 (diff) | |
fix(Core): CanAccountCreateCharacter hook parameters (#13060)
Diffstat (limited to 'src/server/game/Scripting/ScriptDefines')
| -rw-r--r-- | src/server/game/Scripting/ScriptDefines/AccountScript.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Scripting/ScriptDefines/AccountScript.cpp b/src/server/game/Scripting/ScriptDefines/AccountScript.cpp index 4368e87d09..ff12bd54e3 100644 --- a/src/server/game/Scripting/ScriptDefines/AccountScript.cpp +++ b/src/server/game/Scripting/ScriptDefines/AccountScript.cpp @@ -82,11 +82,11 @@ void ScriptMgr::OnFailedPasswordChange(uint32 accountId) }); } -bool ScriptMgr::CanAccountCreateCharacter(std::shared_ptr<CharacterCreateInfo> createInfo, uint32 accountId) +bool ScriptMgr::CanAccountCreateCharacter(uint32 accountId, uint8 charRace, uint8 charClass) { auto ret = IsValidBoolScript<AccountScript>([&](AccountScript* script) { - return !script->CanAccountCreateCharacter(createInfo, accountId); + return !script->CanAccountCreateCharacter(accountId, charRace, charClass); }); if (ret && *ret) |
