diff options
author | ariel- <ariel-@users.noreply.github.com> | 2017-04-03 04:46:39 -0300 |
---|---|---|
committer | ariel- <ariel-@users.noreply.github.com> | 2017-04-03 04:46:39 -0300 |
commit | c36854677c4cef0c83a81afa23b45ba322d354cc (patch) | |
tree | 9941402ee0a930334aefebf7bfadedac0d0cc66b | |
parent | 76a7e1e33a7bbe950ff18ec9eb16bcd1e4fdfba1 (diff) |
Core/AHBot: fixed assert check
-rw-r--r-- | src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
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) |