From c36854677c4cef0c83a81afa23b45ba322d354cc Mon Sep 17 00:00:00 2001 From: ariel- Date: Mon, 3 Apr 2017 04:46:39 -0300 Subject: Core/AHBot: fixed assert check --- src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp b/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp index 7152983b860..67568440219 100644 --- a/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp +++ b/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp @@ -475,10 +475,15 @@ void AuctionBotSeller::LoadItemsQuantity(SellerConfiguration& config) } } - // do some assert checking, GetItemAmount must always return 0 iif selected _itemPool is empty + // do some assert checking, GetItemAmount must always return 0 if selected _itemPool is empty for (uint32 j = 0; j < MAX_AUCTION_QUALITY; ++j) + { for (uint32 i = 0; i < MAX_ITEM_CLASS; ++i) - ASSERT(_itemPool[j][i].empty() == (config.GetItemsAmountPerClass(AuctionQuality(j), ItemClass(i)) == 0)); + { + if (_itemPool[j][i].empty()) + ASSERT(config.GetItemsAmountPerClass(AuctionQuality(j), ItemClass(i)) == 0); + } + } } void AuctionBotSeller::LoadSellerValues(SellerConfiguration& config) -- cgit v1.2.3