Core/Misc: Remove unneeded NULL checks

This commit is contained in:
jackpoz
2014-08-28 23:07:04 +02:00
parent 7c13b383cd
commit 04ddbc374a

View File

@@ -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())