diff options
-rw-r--r-- | src/server/game/AuctionHouseBot/AuctionHouseBot.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/server/game/AuctionHouseBot/AuctionHouseBot.cpp b/src/server/game/AuctionHouseBot/AuctionHouseBot.cpp index 707e143ac39..6bf5fa0aaa5 100644 --- a/src/server/game/AuctionHouseBot/AuctionHouseBot.cpp +++ b/src/server/game/AuctionHouseBot/AuctionHouseBot.cpp @@ -294,8 +294,7 @@ void AuctionHouseBot::InitializeAgents() { if (sAuctionBotConfig->GetConfig(CONFIG_AHBOT_SELLER_ENABLED)) { - if (_seller) - delete _seller; + delete _seller; _seller = new AuctionBotSeller(); if (!_seller->Initialize()) @@ -307,8 +306,7 @@ void AuctionHouseBot::InitializeAgents() if (sAuctionBotConfig->GetConfig(CONFIG_AHBOT_BUYER_ENABLED)) { - if (_buyer) - delete _buyer; + delete _buyer; _buyer = new AuctionBotBuyer(); if (!_buyer->Initialize()) |