From d9390e34b4384dda4b1a75d563acedc4116a7a16 Mon Sep 17 00:00:00 2001 From: ZhengPeiRu21 <98835050+ZhengPeiRu21@users.noreply.github.com> Date: Wed, 21 Sep 2022 05:42:56 -0600 Subject: fix(Core): CanAccountCreateCharacter hook parameters (#13060) --- src/server/game/Scripting/ScriptDefines/AccountScript.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/game/Scripting/ScriptDefines') 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 createInfo, uint32 accountId) +bool ScriptMgr::CanAccountCreateCharacter(uint32 accountId, uint8 charRace, uint8 charClass) { auto ret = IsValidBoolScript([&](AccountScript* script) { - return !script->CanAccountCreateCharacter(createInfo, accountId); + return !script->CanAccountCreateCharacter(accountId, charRace, charClass); }); if (ret && *ret) -- cgit v1.2.3