mirror of
https://github.com/NathanHandley/mod-ah-bot-plus.git
synced 2026-01-13 01:08:37 +00:00
Fix worldsession constructor
Upstream added a new parameter to the constructor
This commit is contained in:
@@ -755,7 +755,7 @@ void AuctionHouseBot::Update()
|
||||
uint32 botIndex = urand(0, AHCharacters.size() - 1);
|
||||
CurrentBotCharGUID = AHCharacters[botIndex].CharacterGUID;
|
||||
std::string accountName = "AuctionHouseBot" + std::to_string(AHCharacters[botIndex].AccountID);
|
||||
WorldSession _session(AHCharacters[botIndex].AccountID, std::move(accountName), nullptr, SEC_PLAYER, sWorld->getIntConfig(CONFIG_EXPANSION), 0, LOCALE_enUS, 0, false, false, 0);
|
||||
WorldSession _session(AHCharacters[botIndex].AccountID, std::move(accountName), 0, nullptr, SEC_PLAYER, sWorld->getIntConfig(CONFIG_EXPANSION), 0, LOCALE_enUS, 0, false, false, 0);
|
||||
Player _AHBplayer(&_session);
|
||||
_AHBplayer.Initialize(AHCharacters[botIndex].CharacterGUID);
|
||||
ObjectAccessor::AddObject(&_AHBplayer);
|
||||
|
||||
Reference in New Issue
Block a user