fix(Core): CanAccountCreateCharacter hook parameters (#13060)

This commit is contained in:
ZhengPeiRu21
2022-09-21 05:42:56 -06:00
committed by GitHub
parent 9819b2d700
commit d9390e34b4
3 changed files with 5 additions and 5 deletions

View File

@@ -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)