diff options
author | ariel- <ariel-@users.noreply.github.com> | 2017-04-03 04:46:39 -0300 |
---|---|---|
committer | funjoker <funjoker109@gmail.com> | 2020-04-27 12:25:52 +0200 |
commit | 847990f030753e5545c75672968c7e99d758d6dc (patch) | |
tree | b011c04f1c274d65c2cdf41fa60d244c9fd5280f /src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp | |
parent | d80350da6886bea546c01b2d3e15c9bad39606fd (diff) |
Core/AHBot: fixed assert check
(cherry picked from commit c36854677c4cef0c83a81afa23b45ba322d354cc)
Diffstat (limited to 'src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp')
-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 9d7252dea93..ea400b30989 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) |