From 04ddbc374aafb41c2fa1776040d99a8a091cb507 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Thu, 28 Aug 2014 23:07:04 +0200 Subject: Core/Misc: Remove unneeded NULL checks --- src/server/game/AuctionHouseBot/AuctionHouseBot.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') 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()) -- cgit v1.2.3