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

@@ -432,7 +432,7 @@ void WorldSession::HandleCharCreateOpcode(WorldPacket& recvData)
std::function<void(PreparedQueryResult)> finalizeCharacterCreation = [this, createInfo](PreparedQueryResult result)
{
if (!sScriptMgr->CanAccountCreateCharacter(createInfo, GetAccountId()))
if (!sScriptMgr->CanAccountCreateCharacter(GetAccountId(), createInfo->Race, createInfo->Class))
{
SendCharCreate(CHAR_CREATE_DISABLED);
return;