From 85a76feeca4cf55f1a73a38e513671b0c5de3156 Mon Sep 17 00:00:00 2001 From: Kargatum Date: Fri, 16 Jul 2021 15:43:14 +0700 Subject: [PATCH] feat(Core/Socket): switch to new core network api (#37) --- src/AuctionHouseBot.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/AuctionHouseBot.cpp b/src/AuctionHouseBot.cpp index e33449d..04bd16e 100644 --- a/src/AuctionHouseBot.cpp +++ b/src/AuctionHouseBot.cpp @@ -685,7 +685,9 @@ void AuctionHouseBot::Update() if ((!AHBSeller) && (!AHBBuyer)) return; - WorldSession _session(AHBplayerAccount, NULL, SEC_PLAYER, sWorld->getIntConfig(CONFIG_EXPANSION), 0, LOCALE_zhCN,0,false,false,0); + std::string accountName = "AuctionHouseBot" + std::to_string(AHBplayerAccount); + + WorldSession _session(AHBplayerAccount, std::move(accountName), nullptr, SEC_PLAYER, sWorld->getIntConfig(CONFIG_EXPANSION), 0, LOCALE_enUS, 0, false, false, 0); Player _AHBplayer(&_session); _AHBplayer.Initialize(AHBplayerGUID); ObjectAccessor::AddObject(&_AHBplayer);