diff options
author | jackpoz <giacomopoz@gmail.com> | 2014-08-28 23:07:04 +0200 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2014-08-28 23:07:04 +0200 |
commit | 04ddbc374aafb41c2fa1776040d99a8a091cb507 (patch) | |
tree | 98b3072687848da76858a91365ce18f56f57f459 | |
parent | 7c13b383cd3554c715134cfc9de5a049abf20d1e (diff) |
Core/Misc: Remove unneeded NULL checks
-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()) |