Skip to content

Commit

Permalink
hotfix failing builds by initializing WorldSession with dummy values
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa authored and killerwife committed Aug 11, 2021
1 parent ca831b2 commit 81546e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Entities/CharacterHandler.cpp
Expand Up @@ -152,7 +152,7 @@ class CharacterHandler

// The bot's WorldSession is owned by the bot's Player object
// The bot's WorldSession is deleted by PlayerbotMgr::LogoutPlayerBot
WorldSession* botSession = new WorldSession(lqh->GetAccountId(), NULL, SEC_PLAYER, masterSession->GetExpansion(), 0, DEFAULT_LOCALE);
WorldSession* botSession = new WorldSession(lqh->GetAccountId(), nullptr, SEC_PLAYER, masterSession->GetExpansion(), 0, DEFAULT_LOCALE, 0, false);
botSession->HandlePlayerLogin(lqh); // will delete lqh
masterSession->GetPlayer()->GetPlayerbotMgr()->OnBotLogin(botSession->GetPlayer());
}
Expand Down

0 comments on commit 81546e1

Please sign in to comment.