mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Misc: Remove unneeded NULL checks
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user